mirror of
https://github.com/bitnami/containers.git
synced 2026-02-14 16:47:21 +08:00
adds development script to package.json
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user