As of fall 2023, the SDR Rails app is deployed to our AWS enviroments (both staging and production) using Capistrano.
- Git
- Ruby (via RVM, Chruby, or Rbenv)
- Ask DLTS DevOps for the pem key and then move it into the
~/.ssh
directory on your local machine. (Don't rename the file when you move it!) - Clone the application repo & cd into it
gh repo clone NYULibraries/spatial_data_repository && cd spatial_data_repository
- Install the ruby dependencies
bundle install
- Deploy the app to the staging instance. The command will deploy the codebase and also restart the Apache server for you, so changes should be live right away.
bundle exec cap staging deploy
- After QA testing the app on staging, deploy the application to production:
bundle exec cap production deploy
NOTE: Your locally cloned codebase is NOT what's being deployed when you run
cap deploy
! You are are actually just using your local permissions and the config settigs in the local repo to deploy the contents of themain
branch of NYULibraries/spatial_data_repository repository on GitHub. So make sure what's inmain
on GitHub is what you're ready to deploy.