Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Setup instructions

Justin Coyne edited this page Sep 7, 2018 · 5 revisions

On production, we deploy this via a Docker container. That means we need to have a way to run db:migrate. One way that works is to have a bastion EC2 host in the VPC of RDS in AWS.

  1. SSH to bastion host: ssh -i ~/.ssh/rialto.pem ec2-user@<bastion host>
  2. Add git and other dependencies as necessary. On a fresh machine I did:
    1. sudo yum install -y git gcc make readline-devel openssl-devel postgresql-devel
  3. Install ruby 2.5.1
    1. git clone git://github.com/rbenv/rbenv.git ~/.rbenv
    2. echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
    3. echo 'eval "$(rbenv init -)"' >> ~/.bashrc
    4. source ~/.bashrc
    5. git clone git://github.com/rbenv/ruby-build.git /tmp/ruby-build
    6. cd /tmp/ruby-build
    7. sudo ./install.sh
    8. rbenv install 2.5.1 && rbenv global 2.5.1
  4. Install the webapp
    1. git clone https://github.com/sul-dlss-labs/rialto-webapp.git
    2. gem install bundler
    3. bundle install
    4. Copy config/master.key out of shared configs
  5. RDS_DB_NAME=rialtodevelopment RDS_USERNAME=rialto RDS_PASSWORD=<omitted> RDS_HOSTNAME=rialto-development-rds.clqwjadk8neo.us-west-2.rds.amazonaws.com RDS_PORT=5432 RAILS_ENV=production rake db:migrate
Clone this wiki locally