-
Notifications
You must be signed in to change notification settings - Fork 6
Generate and add real database locally
Rasmus Rudling edited this page Nov 10, 2021
·
1 revision
-
Terminal #1 - SSH into the server:
ssh [email protected]
-
Terminal #1 - Run script that creates new developer database:
./dump-database.sh
- In terminal #2 - Copy the developer database to your local computer in your current folder:
scp [email protected]:/home/ais/ais-database.sql ais-developer-database.sql
Move ais-developer-database.sql
to the AIS repo and enter its directory, then:
vagrant up
vagrant ssh
- Log into psql as postgres user:
psql -U postgres
- Drop database:
drop database ais_dev;
- Quit psql:
\q
- Create database as user postgres:
psql -U postgres < ais-developer-database.sql
-
For developers
-
API
-
For Head of Internal Systems