-
Notifications
You must be signed in to change notification settings - Fork 0
/
credentials.txt
23 lines (21 loc) · 912 Bytes
/
credentials.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
==> default: Your PostgreSQL database has been setup and can be accessed on your local machine on the forwarded port (default: 15432)
==> default: Host: localhost
==> default: Port: 15432
==> default: Database: myapp
==> default: Username: myapp
==> default: Password: dbpass
==> default:
==> default: Admin access to postgres user via VM:
==> default: vagrant ssh
==> default: sudo su - postgres
==> default:
==> default: psql access to app database user via VM:
==> default: vagrant ssh
==> default: sudo su - postgres
==> default: PGUSER=myapp PGPASSWORD=dbpass psql -h localhost myapp
==> default:
==> default: Env variable for application development:
==> default: DATABASE_URL=postgresql://myapp:dbpass@localhost:15432/myapp
==> default:
==> default: Local command to access the database via psql:
==> default: PGUSER=myapp PGPASSWORD=dbpass psql -h localhost -p 15432 myapp