April 15, 2022 | Tags: #Appwrite, #Dev.to,
A tutorial on how to deploy appwrite on Gitpod and Azure cloud. Learn to deploy appwrite on cloud.
Full Stack Developer, UI / UX Designer , and lifelong learner.
Full Stack Developer, UI / UX Designer , and lifelong learner.
Here, in this post it is all about the progress I have made since the start of the hackathon.
Read more.A tutorial on how to deploy appwrite on Gitpod and Azure cloud. Learn to deploy appwrite on cloud.
Read more.The web app generates dynamic gradients. You can change direction of the colors.
Read more.I have started building my using Appwrite as a backend service for the Hackathon on Dev.to. Most of the time I work with cloud platforms which are accessible on the internet for development and testing, like firebase and supabase or my own cloud server. Appwrite has its own cloud platform upcoming. There are other options like Gitpod and DigitalOcean to deploy your app. I have deployed appwrite on Gitpod which is just one click long process and on Azure Virtual Machine.
I looked up on Google how to install Appwrite on Azure but no article came up or something that is helping. So I tried on my own using the Azure App Service but no luck after changing many configs.
Appwrite has option to deploy an instance on Gipod. I have used it and trust me it is an awesome service providing the installation of the appwrite. Below are the 2 ways to deploy appwrite on the internet.
Gitpod's free plan should be just fine for you to fire up and running your appwrite deployment. There are some limitations to free plan. You can only have 50 hours of running it every month. I think this is a very generous plan for development and testing.
Here is the link to signup for gitpod. Gitpod Home Page Gitpod Pricing
Sign up and you will be redirected to the workspace.
Once account is up and running, make sure you are logged in and go to the installation docs. Appwrite Installation Docs
Scroll down and find "one click setups" section.
Click on "Click to install" link for Gitpod. Now behind the scenes Gitpod will fetch the docker yaml configuration from the Github repo and and pull the image from docker as well set it up.
You may see a screen like this once the deploy is finished. On the right hand, in the simple browser window, open the URL link into another tab, create account and you are good to go.
Azure will cost you money to host appwrite on Cloud VM. Feel free to use Gitpod instead.
Virtual Machines
and go ahead.This screen will show all the deployed instances.
Create
to create a new VM.![[choose-vm.png]]
7. Choose the second option, Azure Virtual Machine with preset configuration
to create a new VM using preset.
8. You will be asked to choose different environment based on the need but just skip it. You will find a Skip for now
button down somewhere.
9. Now, lets create the VM for out needs.
Choose the subscription and the resource group first, create if you do not have it.
Fill up the details based on your needs. Below is my configuration.
Standard B2
.Review + Create
.Connect to your instance.
Open
.Check out this link for in detail information about these commands.
#Update the list of packages
sudo apt update
#Instll prerequisite packages
sudo apt install apt-transport-https ca-certificates curl software-properties-common
#Add GPG key for the official docker repo
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
#Add the docker repo of apt sources
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
#Install docker
sudo apt install docker-ce
#Check status of docker daemon
sudo systemctl status docker
Run the command to install appwrite.
docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:0.13.4
Note: If you find the error below, do these steps.
```bash
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create": dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
Run these command and then run the installation command again. For more details on these commands, check out this stack overflow question.
$ sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
docker run hello-world # if docker runs the hello-world image then you are good to go.
Run the installation command again and there should be no problems.
Once Docker has successfully pulled the image from the hub it will ask some of the questions, which are as below :
Once you click ok, it will run docker-compose
and set up the config for appwrite,
Once done, You will see a message that "Appwrite Installed Successfully." Now, to access the Appwrite console go to the public IP address of your VM and you should see the screen like below. Create an account and start building using Appwrite.