2018-06-27 19:53:09 +00:00
|
|
|
#!/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
|
2019-11-06 20:36:28 +00:00
|
|
|
yarn export-i18n && yarn generate-api-js
|
2018-06-27 19:53:09 +00:00
|
|
|
|
2018-06-27 21:56:54 +00:00
|
|
|
if [ -n "$HOUDINI_WATCH" ];
|
2018-06-27 19:53:09 +00:00
|
|
|
then
|
2018-06-27 21:56:54 +00:00
|
|
|
echo "we're gonna watch!!!"
|
2019-11-06 20:36:28 +00:00
|
|
|
bin/webpack --watch
|
2018-06-27 19:53:09 +00:00
|
|
|
else
|
2018-06-27 21:56:54 +00:00
|
|
|
echo "we're gonna build!!!"
|
2019-11-05 21:51:46 +00:00
|
|
|
NODE_ENV=production yarn webpack -p
|
2018-06-27 19:53:09 +00:00
|
|
|
fi
|
|
|
|
)
|