Skip to content

Commit

Permalink
Added correction re: npm bin
Browse files Browse the repository at this point in the history
  • Loading branch information
dsbauer committed Oct 2, 2015
1 parent d3b8e3e commit 1f1a44e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _posts/00-08-04-postgres-psql.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ Let's specify the creation of tables and relationships directly in JavaScript. T
That command is a short way of saying
`./node_modules/.bin/knex init`
but it works from any directory.

Beware of directories with spaces in their name; the path replacement won't work if the path it returns contains a space.
If that happens, you can glue the whole path together by wrapping it in quotes like this:
{% highlight bash %}
"`npm bin`"/knex init
{% endhighlight %}
</aside>

Then modify the `knexfile.js` file so that the `development` section contains:
Expand Down

0 comments on commit 1f1a44e

Please sign in to comment.