Setting up an environment on DeployBot

Using DeployBot you can setup multiple deployment environments and can setup these deployments to take place with either automatic or manual deployments. Automatic deployments are triggered whenever you push changes up to the repository.
Another good feature of using DeployBot is that it will keep track of deployments you make, this means when something goes wrong you can see exactly what commit broke the site. As you keep track of each deployment it means if something does break you can quickly rollback to the previous commit and deploy this code back up to the server.

How to setup an environment on deploybot?

To setup an environment you first need to connect your repository to deploybot.
After connecting a repo to deploybot follow the steps given below.

step1

Step 1 –
After you log into your dashboard click on repositories in the header and open the listed repository for which you want to add an environment.

 

step2

Step 2 –
After opening, on this screen you will see your list of environments if you have already set them up or if haven’t created one click on Add an environment button.

 

step3

Step 3 –
After click on add an environment button a screen will open on which form to fill the details regarding an environment will display.

a. In general settings fill the name that you want to give to your environment and choose color for your environment.

b. In deployment mode there are two options.

Manual –
Deployment can be initiated through web Interface. or by entering a deploy command like
[aeployz production] In the commit message. Works best for important environments, like production.

Automatic –
We will automatically deploy every commit. Most handy for staging and development environments. Never deploy to a production environment automatically!

c. Next is branch. For the doubts about which branch to choose see the help given below the branch dropdown.

d. Last one is trigger which is optional. We can trigger certain actions upon each deployment to this environment. like notify external applications. You can connect your accounts on the Integrations page.

e. That’s it now hit save if you’re done with above steps.

 

step4

Step 4 –
After clicking on save button a new screen will come up where it will prompt you to add a server.
you can see there are lot of deployment options available for deployment. But here we are using FTP.
So under in choose deployment options under Files click on FTP.

 

step5

Step 5 –
Now a form will open to add the details of your FTP server. Now again in general settings fill all the information.
a. Name
b. Host
c. Port
d. Destination path
e. Login (username)
f. Password
And click on save.

 

step6

If you’ve been following correctly then you have successfully set up an environment. Now will you’ll see all the details that you have provided while setting up an environment. If you’ve done till here, then you are ready to deploy your projects.