Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alincode/capistrano-sandbox2
https://github.com/alincode/capistrano-sandbox2
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alincode/capistrano-sandbox2
- Owner: alincode
- Created: 2016-07-29T04:41:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-29T07:29:18.000Z (over 8 years ago)
- Last Synced: 2024-11-06T07:27:22.215Z (about 2 months ago)
- Language: Ruby
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# capistrano-sandbox
[capistrano website](https://github.com/capistrano/capistrano)
### create config
```
touch Gemfile
```Install Capistrano, cap install STAGES=staging,production
`cap install`
or
`bundle exec cap install STAGES=local,sandbox,qa,production`
## Command-line usage
```
# list all available tasks
$ bundle exec cap -T# deploy to the staging environment
$ bundle exec cap staging deploy# deploy to the production environment
$ bundle exec cap production deploy# simulate deploying to the production environment
# does not actually do anything
$ bundle exec cap production deploy --dry-run# list task dependencies
$ bundle exec cap production deploy --prereqs# trace through task invocations
$ bundle exec cap production deploy --trace# lists all config variable before deployment tasks
$ bundle exec cap production deploy --print-config-variables
```### reference
[Capistrano 自動化部署](http://xtony77.logdown.com/posts/210310-notes-capistrano-rails-deployment-automation)