-
Notifications
You must be signed in to change notification settings - Fork 2
Update local development instructions in README #40
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,28 @@ | ||
| # Installation | ||
| ## Locally | ||
| * postgres server installed and running | ||
| * `brew install postgres` | ||
| * `pg_ctl -D /usr/local/var/postgres start` | ||
| * heroku cli installed | ||
| * `brew install heroku` | ||
| * `brew install postgres` | ||
| * `pg_ctl start -D /usr/local/var/postgres` | ||
| * golang installed | ||
| * `brew install go` | ||
| * godep installed: | ||
| * `go get github.com/tools/godep` | ||
| * `brew install go` | ||
| * godep installed: | ||
| * `go get github.com/tools/godep` | ||
| * create database | ||
| * `psql -d postgres -c "create database cerealnotes_test"` | ||
| * Refer to `migrations/README.md` to create relevant database tables | ||
| * export environment variables | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you used |
||
| ``` | ||
| export DATABASE_URL=postgres://localhost:5432/cerealnotes_test?sslmode=disable | ||
| export TOKEN_SIGNING_KEY=abcdefg | ||
| export PORT=8000 | ||
| ``` | ||
| * run the app | ||
| * `go build && ./cerealnotes` | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why this instead of
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just to avoid heroku |
||
|
|
||
| ## Heroku | ||
| * heroku cli installed | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this needs to be installed to run locally |
||
| * `brew install heroku` | ||
| * heroku instance | ||
| * instance connected to postgres db | ||
|
|
||
| # Running CerealNotes | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| # Locally: | ||
| 1. first make sure that postgres is running. | ||
| * If installed via homebrew on a macOS: `pg_ctl -D /usr/local/var/postgres start` | ||
| # Locally: | ||
| 1. first make sure that postgres is running. | ||
| * If installed via homebrew on a macOS: `pg_ctl start -D /usr/local/var/postgres` | ||
| 2. then run migration locally | ||
| * `psql < *MIGRATION_NAME*` | ||
|
|
||
| # On Heroku: | ||
| # On Heroku: | ||
|
|
||
| 1. `heroku pg:psql < *MIGRATION_NAME*` |
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.
Did the previous version not work on your machine?
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.
nope
I tried checking the pg_ctl release notes to see if something changed. Couldn't find anything. But putting the optional args before
startresulted in an error for me