Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Add to `.gitignore`:
- ```
- node_modules
- public
- ```
- 2. Add to your app `dependencies` of `package.json`:
- ```
- "statik": ">= 1.1.0",
- "brunch": ">= 1.0 < 1.5",
- ```
- and move `devDependencies` to `dependencies` if they’re not already there:
- ```
- "chai": "1.2.0",
- "sinon": "1.4.2",
- "sinon-chai": "2.1.2"
- ```
- 3. Create `server.js`:
- ```javascript
- var statik = require('statik');
- var server = statik.createServer();
- server.listen(process.env.PORT || 1337);
- ```
- 4. Add Procfile.
- ```
- web: node server.js
- ```
- 5. Add to `scripts` section of `package.json`:
- ```
- "postinstall": "brunch build --minify"
- ```
- 6. Deploy, PROFIT!
Add Comment
Please, Sign In to add comment