Skip to content

Commit

Permalink
add nodemon, remove .env from being tracked
Browse files Browse the repository at this point in the history
  • Loading branch information
catarak committed Jun 22, 2016
1 parent 3c39574 commit 3aa3a4d
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .env

This file was deleted.

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.DS_Store
.env
node_modules/
npm-debug.log
dump.rdb
public/*
static/dist
static/css/app.min.css
.env
static/css/app.min.css
16 changes: 16 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

{
"restartable": "rs",
"ignore": [
".git",
"node_modules/**/node_modules"
],
"verbose": true,
"watch": [
"server"
],
"env": {
"NODE_ENV": "development"
},
"ext": "js json"
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The web editor for p5.js.",
"main": "server.js",
"scripts": {
"start": "node index.js",
"start": "BABEL_DISABLE_CACHE=1 NODE_ENV=development nodemon index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Cassie Tarakajian",
Expand All @@ -23,6 +23,7 @@
"css-loader": "^0.23.1",
"file-loader": "^0.8.5",
"node-sass": "^3.7.0",
"nodemon": "^1.9.2",
"redux-devtools": "^3.3.1",
"redux-devtools-dock-monitor": "^1.1.1",
"redux-devtools-log-monitor": "^1.0.11",
Expand Down
2 changes: 1 addition & 1 deletion server/controllers/project.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function createProject(req, res) {
user: req.user ? req.user._id : undefined,
file: {}
}

Object.assign(projectValues, req.body);

Project.create(projectValues, function(err, newProject) {
Expand Down

0 comments on commit 3aa3a4d

Please sign in to comment.