Skip to content

Commit bf17385

Browse files
committed
Update heroku.md
1 parent b311cc1 commit bf17385

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/heroku.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ git push heroku master
2626
```
2727

2828

29-
## GOTCHA: Use "dependencies" and not "devDependencies" for anything deployment related
30-
31-
Be sure to put all normall "dev only" tools in "dependencies" and not "devDependencies" in your `client/package.json`. This is because the Heroku default buildpack will only install what's in "dependencies". So only use `npm --save-dev` for things like linters and anything **only** related to the Webpack Dev Server.
29+
## GOTCHAS
3230

31+
1. Use "dependencies" and not "devDependencies" for anything deployment related. Be sure to put all normall "dev only" tools in "dependencies" and not "devDependencies" in your `client/package.json`. This is because the Heroku default buildpack will only install what's in "dependencies". So only use `npm --save-dev` for things like linters and anything **only** related to the Webpack Dev Server.
32+
2. The file system is case sensitive on Heroku, so don't mix the case of your import with the real file name. For example, if you name a file `BaseApi` and you do this: `import BaseAPI from 'lib/utils/BaseAPI'`, that will work locally, but when you deploy, you'll get an error like: `Uncaught Error: Cannot find module "lib/utils/baseAPI"`

0 commit comments

Comments
 (0)