echo "gem 'capistrano', '~> 3.4.0'" > Gemfile
bundle install
bundle update
cap installAfter Capistrano is all set up, configure /config/deploy.rb and /config/deploy/production.rb using the files in this repository as an example.
- Create a user to deploy with
- Set apache vhost document root to
/current - Upload
.envfile to/sharedand use:linked_filesand:linked_dirsto symlink the app files - Don't forget to run
php artisan key:generate
To deploy the develop branch
bundle exec cap development deploy
To deploy a specific branch
BRANCH=branch_name bundle exec cap development deploy