Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmeurer committed Dec 4, 2022
1 parent deb2e26 commit 4a72d96
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions stuff.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# create database

psql -h XXX.eu-central-1.rds.amazonaws.com -U postgres
create role chief with createdb login password 'password';
RAILS_ENV=production bin/rails db:create

h pg:backups:download
pg_restore --verbose --clean --no-acl --no-owner -h XXX.eu-central-1.rds.amazonaws.com -U chief -d rubydocs_production latest.dump

0 comments on commit 4a72d96

Please sign in to comment.