20 lines
No EOL
417 B
Bash
Executable file
20 lines
No EOL
417 B
Bash
Executable file
#!/bin/bash
|
|
|
|
|
|
(
|
|
echo $HOUDINI_WATCH
|
|
set -e
|
|
set -o pipefail
|
|
export DATABASE_URL=${BUILD_DATABASE_URL:-postgres://admin:password@db/commitchange_development}
|
|
echo $DATABASE_URL
|
|
yarn export-button-config && yarn export-i18n && yarn generate-api-js
|
|
|
|
if [ -n "$HOUDINI_WATCH" ];
|
|
then
|
|
echo "we're gonna watch!!!"
|
|
yarn webpack --watch
|
|
else
|
|
echo "we're gonna build!!!"
|
|
NODE_ENV=production yarn webpack -p
|
|
fi
|
|
) |