- Load the frontend on the site as well
For the AWS instance running the cobudget backend
Host cobudget
Hostname 52.31.141.254
User ubuntu
The database url format is postgres://username:password@localhost/myrailsdb
- DATABASE_URL (
postgres://ud6dfgef6bi48k:pusrad9dnpafvcp9u74ocln6g0@ec2-52-203-250-6.compute-1.amazonaws.com:5432/d1hlu2cr9ta2p3
on Heroku)- Format:
<adapter>://<host>/<database>
- Format:
- RAILS_ENV (
production
on Heroku) - RACK_ENV (
production
on Heroku) - PORT - the port Puma connect to (will be set on Heroku at puma start)
- SECRET_KEY_BASE -
To connect using psql: psql -h cobudget1.cnxbxtmxjlog.eu-west-1.rds.amazonaws.com -U chime -d cobudget
dropdb -h cobudget1.cnxbxtmxjlog.eu-west-1.rds.amazonaws.com -U chime cobudget
createdb -h cobudget1.cnxbxtmxjlog.eu-west-1.rds.amazonaws.com -U chime cobudget
psql -h cobudget1.cnxbxtmxjlog.eu-west-1.rds.amazonaws.com -U chime -d cobudget < <file_from_previous_pg_dump>
Make sure all packages are installed bundle install
Set environment vars: . ./env
Start: /bin/rails s
sudo apt-get install postgresql-common libpq-dev