source:
README.md@
0af535a
Last change on this file since 0af535a was 0af535a, checked in by , 2 years ago | |
---|---|
|
|
File size: 967 bytes |
Rev | Line | |
---|---|---|
[87614a5] | 1 | # Caessino |
[6568bde] | 2 | |
[87614a5] | 3 | Firstly, create a .env file in the project's root directory and populate it like so: |
[6568bde] | 4 | |
[4a1a3ca] | 5 | HOME_URL="http://localhost:3000" |
6 | POSTGRES_HOST="db" | |
7 | POSTGRES_USER="postgres" | |
8 | POSTGRES_PASSWORD="postgres" | |
9 | POSTGRES_DB="postgres" | |
[6568bde] | 10 | |
11 | ||
[87614a5] | 12 | Now, in your console, navigate to the project's root directory and run: |
[6568bde] | 13 | |
[87614a5] | 14 | docker-compose up |
[6568bde] | 15 | |
16 | ||
[0af535a] | 17 | =========================================================================== |
18 | If you are configuring this project for the first time, do the following, in order to set up the database. | |
[6568bde] | 19 | |
[87614a5] | 20 | Note: The containers should be running in the background! (previously started with docker-compose up) |
[6568bde] | 21 | |
[87614a5] | 22 | Open another console and run: |
[6568bde] | 23 | |
[0af535a] | 24 | docker exec -it name_of_db_container /bin/bash |
25 | psql -U postgres postgres `<` /usr/local/app/dummy_database.sql | |
[64dc53b] | 26 | |
27 | (When inserting `<`, it should not be surrounded by quotation marks) | |
[6568bde] | 28 | |
[0af535a] | 29 | =========================================================================== |
[6568bde] | 30 | |
[87614a5] | 31 | Now you are all set up. |
[6568bde] | 32 | |
[64dc53b] | 33 | Enjoy your stay at Caessino. |
Note:
See TracBrowser
for help on using the repository browser.