This repository has been archived by the owner on Oct 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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.
- SSH to bastion host:
ssh -i ~/.ssh/rialto.pem ec2-user@<bastion host>
- Add git and other dependencies as necessary. On a fresh machine I did:
sudo yum install -y git gcc make readline-devel openssl-devel postgresql-devel
- Install ruby 2.5.1
git clone git://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
git clone git://github.com/rbenv/ruby-build.git /tmp/ruby-build
cd /tmp/ruby-build
sudo ./install.sh
rbenv install 2.5.1 && rbenv global 2.5.1
- Install the webapp
git clone https://github.com/sul-dlss-labs/rialto-webapp.git
gem install bundler
bundle install
- Copy
config/master.key
out of shared configs
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