Update local development instructions in README#40
Update local development instructions in README#40ethomas2 wants to merge 1 commit intoatmiguel:masterfrom
Conversation
b4ca773 to
59a6fcb
Compare
|
Did you install this on linux or on macOS? Also i think the create database isn't correct. Also the environment variables are saved in .env which is loaded by |
| * heroku cli installed | ||
| * `brew install heroku` | ||
| * `brew install postgres` | ||
| * `pg_ctl start -D /usr/local/var/postgres` |
There was a problem hiding this comment.
Did the previous version not work on your machine?
There was a problem hiding this comment.
nope
mbp-IT002597:~ ethomas$ pg_ctl --version
pg_ctl (PostgreSQL) 10.3
mbp-IT002597:~ ethomas$ pg_ctl --help | head -10
pg_ctl is a utility to initialize, start, stop, or control a PostgreSQL server.
Usage:
pg_ctl init[db] [-D DATADIR] [-s] [-o OPTIONS]
pg_ctl start [-D DATADIR] [-l FILENAME] [-W] [-t SECS] [-s]
[-o OPTIONS] [-p PATH] [-c]
pg_ctl stop [-D DATADIR] [-m SHUTDOWN-MODE] [-W] [-t SECS] [-s]
pg_ctl restart [-D DATADIR] [-m SHUTDOWN-MODE] [-W] [-t SECS] [-s]
[-o OPTIONS] [-c]
pg_ctl reload [-D DATADIR] [-s]
I tried checking the pg_ctl release notes to see if something changed. Couldn't find anything. But putting the optional args before start resulted in an error for me
| * create database | ||
| * `psql -d postgres -c "create database cerealnotes_test"` | ||
| * Refer to `migrations/README.md` to create relevant database tables | ||
| * export environment variables |
There was a problem hiding this comment.
If you used heroku local you wouldn't need to do this
| export PORT=8000 | ||
| ``` | ||
| * run the app | ||
| * `go build && ./cerealnotes` |
There was a problem hiding this comment.
why this instead of go install && heroku local?
| * `go build && ./cerealnotes` | ||
|
|
||
| ## Heroku | ||
| * heroku cli installed |
There was a problem hiding this comment.
this needs to be installed to run locally
|
|
closing in favor of #39 |
No description provided.