Skip to content

Deployment Stuff

James Elgar edited this page Mar 5, 2022 · 5 revisions

Deployment stuff

The following doc is for how things are done in deployed environments. Most commands will be assuming you are sshed into the digital ocean droplet at /var/now-u.

How to create an admin user

docker-compose exec staging-api rails c
Admin.create!(email: "<EMAIL>", password: "<PASSWORD>", admin_role: 64)

How to seed staging environment

docker-compose exec staging-api bash
export DATABASE_CLEANER_ALLOW_PRODUCTION=true
export DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL=true
bundle exec rake db:seed
Clone this wiki locally