brew update brew install redis
To have launchd start redis now and restart at login:
brew services start redis
|# CORS header support|
|# One way to use this is by placing it into a file called "global/cors.conf"|
|# under your Nginx configuration directory and placing the following|
|# statement inside your **location** block(s):|
|# include global/cors.conf;|
|# As of Nginx 1.7.5, add_header supports an "always" parameter which|
Sorry if I don't put only the code here but the instructions says:
When writing this code, you can use any language you're comfortable with. * The code must be well tested ... * ... documented if necessary * ... treat the quality of the code as if it was ready to ship to production.
So, I think the best way to do that is using a git repository.
NOTES: After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0."
Database files have to be updated before starting the server, here are the steps that had to be followed:
brew unlink postgresql brew install email@example.com brew unlink firstname.lastname@example.org
|-- show running queries (pre 9.2)|
|SELECT procpid, age(query_start, clock_timestamp()), usename, current_query|
|WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'|
|ORDER BY query_start desc;|
|-- show running queries (9.2)|
|SELECT pid, age(query_start, clock_timestamp()), usename, query|
|WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'|