mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Fix bug in docker-entrypoint.sh
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# This file serves 3 use cases:
|
# This file serves 3 use cases:
|
||||||
# 1: if the env variable UPDATE is 1, db is prepared and assets compiled by webpack
|
# 1: if the env variable UPDATE is 1, db is prepared
|
||||||
# 2: if a command was supplied, it is executed
|
# 2: if a command was supplied, it is executed
|
||||||
# 3: otherwise, check env variable ENVIRONMENT and launch server
|
# 3: otherwise, check env variable ENVIRONMENT and launch server
|
||||||
|
|
||||||
@@ -30,11 +30,6 @@ if [ "$UPDATE" = 1 ]; then
|
|||||||
fi
|
fi
|
||||||
echo "Database prepared."
|
echo "Database prepared."
|
||||||
|
|
||||||
# Use webpack to build JS and CSS.
|
|
||||||
echo "Compiling JS and CSS with webpack..."
|
|
||||||
$APP_ROOT/bin/webpack
|
|
||||||
echo "Webpack compilation completed."
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user