wait for database after installing packages

This commit is contained in:
Sameer Naik
2017-01-27 13:11:57 +05:30
parent 01fa8f0111
commit ca253addd0

View File

@@ -2,8 +2,6 @@
. /opt/bitnami/express/functions
if [ "$1" == npm ] && [ "$2" == "start" -o "$2" == "run" ]; then
wait_for_db
if ! app_present; then
bootstrap_express_app
fi
@@ -12,6 +10,8 @@ if [ "$1" == npm ] && [ "$2" == "start" -o "$2" == "run" ]; then
install_packages
wait_for_db
if ! fresh_container; then
echo "#########################################################################"
echo " "