Skip to content
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

Add alternative brew commands #50

Merged
merged 1 commit into from
Nov 27, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions src/v1/guides/install-node-redis-and-postgres-on-your-mac.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,29 @@ order: 020

> If you already have these installed, you can skip this step.

Once you have [homebrew installed](/v1/guides/installing-homebrew-on-your-mac.html) you can install node and redis very easily. If you're planning on building a database driven app you will want to install a database as well. We recommend Postgres. To install these three just type the following command into your terminal:
Once you have [homebrew installed](/v1/guides/installing-homebrew-on-your-mac.html), you can install node and redis very easily. If you're planning on building a database-driven app, you will want to install a database, as well. We recommend Postgres. To install these three just type the following command into your terminal:

`brew install node redis postgres`

> postgres is optional and you can leave it out.
> postgres is optional, and you can leave it out.

If you don't want to have to manually start the redis and postgres servers each time your computer restarts you should be sure to run the commands that start with `launchctl load ...`. They will be displayed in your terminal after brew is finished installing and will probably look like this:
If you don't want to have to manually start the redis and postgres servers each time your computer restarts, be sure to run the commands that start with `launchctl load ...`. They will be displayed in your terminal after brew is finished installing and will probably look like this:

```
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
```
```

If the commands above are not working, then brew on your machine might be a little out of sync. No worries, just run these commands:

```
brew info postgres
brew info redis
```

Near the bottom of these info pages you will find the correct command to run on your machine. The correct commands may look something like this:

```
brew services start postgresql
brew servcies start redis
```