mirror of
https://github.com/bitnami/containers.git
synced 2026-03-19 15:57:46 +08:00
moved app_present inside bootstrap_express_app
This commit is contained in:
@@ -2,9 +2,7 @@
|
||||
. /opt/bitnami/express/functions
|
||||
|
||||
if [ "$1" == npm ] && [ "$2" == "start" -o "$2" == "run" ]; then
|
||||
if ! app_present; then
|
||||
bootstrap_express_app
|
||||
fi
|
||||
bootstrap_express_app
|
||||
|
||||
add_dockerfile
|
||||
|
||||
|
||||
@@ -98,12 +98,16 @@ add_nodemon_support() {
|
||||
}
|
||||
|
||||
bootstrap_express_app() {
|
||||
log "Creating express application"
|
||||
express . -f
|
||||
if ! app_present; then
|
||||
log "Creating express application."
|
||||
express . -f
|
||||
|
||||
add_database_support
|
||||
add_nodemon_support
|
||||
add_sample_code
|
||||
add_database_support
|
||||
add_nodemon_support
|
||||
add_sample_code
|
||||
else
|
||||
log "Skipping creation of new application. Already exists!"
|
||||
fi
|
||||
}
|
||||
|
||||
add_dockerfile() {
|
||||
|
||||
Reference in New Issue
Block a user