-
Notifications
You must be signed in to change notification settings - Fork 1
Deploying
The application is deployed to a Linode server via Capistrano. To deploy code to production, you first have to get your public SSH key on the server. Open an issue with your public key to be added.
If this is your first time deploying from the machine you're presently on, you will also need to:
cp config/deploy/slack.rb.dist config/deploy/slack.rb
Then open config/deploy/slack.rb
in your EDITOR
and set the slack_webhook URL to the webhook provided to you by one of the project maintainers.
After that is all set up and your changes are merged into master
, run:
bundle exec cap production deploy
You will see the output of the deployment as it goes through the various build steps.
You will also have access to the console and database via:
bundle exec cap production rails:console
bundle exec cap production rails:dbconsole
For testing purposes (and for possible future expansion), we can deploy to Heroku. Deployment here involves installing the Heroku Toolbelt and being added to the seatshare-app
application.
To connect your cloned repository to the Heroku application:
heroku git:remote -a seatshare-app
After that is complete, you can put the master
branch to Heroku (only accepts master
):
git push heroku master
The application is available at http://heroku.seatsha.re/