Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.49 KB

deploy.md

File metadata and controls

31 lines (25 loc) · 1.49 KB

Deploy the GeoBlacklight Rails App

Context

As of fall 2023, the SDR Rails app is deployed to our AWS enviroments (both staging and production) using Capistrano.

Prerequisites

  • Git
  • Ruby (via RVM, Chruby, or Rbenv)

Instructions

  1. 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!)
  2. Clone the application repo & cd into it
    gh repo clone NYULibraries/spatial_data_repository && cd spatial_data_repository
  3. Install the ruby dependencies
    bundle install
  4. 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
  5. 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 the main branch of NYULibraries/spatial_data_repository repository on GitHub. So make sure what's in main on GitHub is what you're ready to deploy.