06
- 6.2 Script a deployment
- Learning Objectives
- Modify Capistrano script.
6.2 Script a deployment
Learning Objectives
By the end of this lesson you will be able to:
- Write a deployment script in Capistrano.
Modify Capistrano script.
- From the root directory of your AWSCLI instance change directory to devopsinthecloud.
Open the file as shown below.
“` $ sudo vim deploy.rb
“`
A list of some of the deploy tasks is provided below.
“` deploy:setup deploy:deploy deploy:bundle_install deploy:db_migrate deploy:restart
“`
Capify is run in the jenkins.template
- You can also find these files by going to https://github.com/stelligent/devopsinthecloud/blob/master/deployment/config/deploy.rb.
- Review the Deployment Jenkins job.
- Make a modification to the contents of the file and save it.
Add the file in Git
“` $ git add .
“`
Commit the file to Git
“` $ git commit -m “Modified deployment script”
“`
Push it to the Git master.
“` $ git push
“`