With Enscale, you can deploy your Ruby application directly from your git repository, so you can link your deployments with your favourite version control system.
You should ensure that you have an up to date gemfile and rake_deploy file in order to make sure that your project’s gem dependencies are installed as well as all necessary commands executed by rake after deployment.
Below you can see how to deploy your application and how to set up automatic redeployments with Enscale.
Create your Ruby environment with your choice of Apache or Nginx application runtime node.
Enter your environment and click Deploy to open the Deployment Manager.
When (re)deploying, please make sure you have an updated rake_deploy file in the application’s root folder in your git repository, containing the commands you would like rake to run after redeployment.
Click Deploy a new project to deploy your git project. (Only archives are saved as existing projects).
Select the Git tab to provide us with a link to your repository.
URL: the URL of your git repository
Branch: the repository branch you wish to checkout
Auto-update interval: set how often you would like Enscale to check your repository for updates. If any changes are detected, Enscale will also re-deploy your application.
Auto-resolve conflicts: toggle on instructs Enscale to update any contradictory files to the ones in the repository to prevent merge conflicts during re-deploy.
Deploy hooks: Here you can enter custom scripts to run before (Pre) or after (Post) deployment. Enter the script in the appropriate tab and click Apply to save it.
The rake_deploy file is deleted after successful execution. You can see the results of your rake tasks in the rake_deploy.log file.
Now that your code is deployed, you may wish to configure the DNS for your domain.