-
Notifications
You must be signed in to change notification settings - Fork 18
pg setup #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pg setup #65
Conversation
docs/setup.md
Outdated
| * Install [Docker](https://docs.docker.com/engine/installation/) and [docker-compose](https://docs.docker.com/compose/install/) | ||
| * Run `yarn database:docker-server` to create the docker container for the SQL Server (volume to persist data will be mounted) | ||
|
|
||
| Once you have configured your SQL Server, run the following commands: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update SQL Server text to PostgreSQL
docs/setup.md
Outdated
| * Create new database called *reactseeddb*. Use following credentials: | ||
| * user: `postgres` | ||
| * password: `Password.01` | ||
| * Update the `postgres` password in the `server/datastore/create/knexfile.js` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new password is needed 'cause docker image config?
| @@ -0,0 +1,3 @@ | |||
| exports.seed = function(knex) { | |||
| return knex.raw('CREATE DATABASE reactseeddb'); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
append the next two seeds in batch: kenx.raw(...).then( ... )
- CREATE DATABASE
- CREATE USER
- GRANT
| connection: { | ||
| host: 'localhost', | ||
| user: 'postgres', | ||
| password: 'sa.pg.01', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update docs (setup.md) with initial db crendentials
carloluis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐳 👍
Uh oh!
There was an error while loading. Please reload this page.