adds development script to package.json

This commit is contained in:
Sameer Naik
2017-01-23 12:25:22 +05:30
parent 4290969227
commit c39c8d3b7e
4 changed files with 4 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ services:
myapp:
tty: true # Enables debugging capabilities when attached to this container.
image: bitnami/express:latest
command: npm start
command: npm run development
environment:
- PORT=3000
- NODE_ENV=development

View File

@@ -9,7 +9,7 @@ services:
myapp:
tty: true # Enables debugging capabilities when attached to this container.
image: bitnami/express:latest
command: npm start
command: npm run development
environment:
- PORT=3000
- NODE_ENV=development

View File

@@ -7,7 +7,7 @@ services:
myapp:
tty: true # Enables debugging capabilities when attached to this container.
image: bitnami/express:latest
command: npm start
command: npm run development
environment:
- PORT=3000
- NODE_ENV=development

View File

@@ -68,7 +68,7 @@ bootstrap_express_app() {
log "Adding nodemon npm module (dev)"
npm install nodemon --save-dev
sed -i 's,node ./bin/www,nodemon ./bin/www,' package.json
sed -i 's;"start".*;"start": "node ./bin/www", "development": "nodemon ./bin/www";' package.json
}
add_database_support() {