Skip to content

Commit

Permalink
Removed all mentions of vagrant; DB user is now postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
pcantrell committed Jun 9, 2024
1 parent 09353fd commit f1c3fc3
Show file tree
Hide file tree
Showing 17 changed files with 9 additions and 524 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
env:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: sessionizer_test
POSTGRES_USER: vagrant
POSTGRES_PASSWORD: vagrant
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres

steps:
- uses: actions/checkout@v4
Expand All @@ -36,8 +36,8 @@ jobs:
CI: github
RAILS_ENV: test
POSTGRES_DB: sessionizer_test
POSTGRES_USER: vagrant
POSTGRES_PASSWORD: vagrant
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
run: |
bundle exec rake db:create db:migrate db:test:prepare
bundle exec rails spec
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@
/config/database.yml

coverage/

.vagrant
vagrant/ansible/*.retry
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ createuser -s -r postgres

# create 'sessionizer_development' database
createdb sessionizer_development

# create 'vagrant' user
createuser -s -r vagrant
```

#### Bundle exec
Expand Down
10 changes: 3 additions & 7 deletions bin/pull-database-from-production
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/bin/sh

# If no PG user vagrant exists:
# This script assumes the existence of a PG user named `postgres`

# create user vagrant;
# alter user vagrant createdb;

psql postgres vagrant -c 'drop database sessionizer_development;'
PGUSER=vagrant heroku pg:pull DATABASE sessionizer_development --app sessionizer2016
psql sessionizer_development vagrant -c 'grant all on all tables in schema public to vagrant;'
psql postgres postgres -c 'drop database sessionizer_development;'
PGUSER=postgres heroku pg:pull DATABASE sessionizer_development --app sessionizer2016
4 changes: 2 additions & 2 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ default: &default
# Database does not work in GitHub Workflows if host parameter is not specified
host: localhost
pool: 5
username: vagrant
password:
username: postgres
password:

development:
<<: *default
Expand Down
138 changes: 0 additions & 138 deletions vagrant/Vagrantfile

This file was deleted.

1 change: 0 additions & 1 deletion vagrant/ansible/credentials/secret_key_base.txt

This file was deleted.

132 changes: 0 additions & 132 deletions vagrant/ansible/development.yml

This file was deleted.

2 changes: 0 additions & 2 deletions vagrant/ansible/files/bash_aliases

This file was deleted.

43 changes: 0 additions & 43 deletions vagrant/ansible/files/bash_profile

This file was deleted.

Loading

0 comments on commit f1c3fc3

Please sign in to comment.