Changeset View
Changeset View
Standalone View
Standalone View
src/.s2i/bin/assemble
Show All 32 Lines | |||||
fi | fi | ||||
./artisan horizon:install | ./artisan horizon:install | ||||
if [ ! -z "${OPENEXCHANGERATES_API_KEY}" ]; then | if [ ! -z "${OPENEXCHANGERATES_API_KEY}" ]; then | ||||
./artisan data:import:open-exchange-rates | ./artisan data:import:open-exchange-rates | ||||
fi | fi | ||||
if [ ! -z "${OAUTH_PRIVATE_KEY}" ]; then | |||||
echo "${OAUTH_PRIVATE_KEY}" > ./storage/oauth-private.key | |||||
fi | |||||
if [ ! -z "${OAUTH_PUBLIC_KEY}" ]; then | |||||
echo "${OAUTH_PUBLIC_KEY}" > ./storage/oauth-public.key | |||||
fi | |||||
echo "---->> Run npm run prod" | echo "---->> Run npm run prod" | ||||
npm install | npm install | ||||
npm run ${LARAVEL_ENV:=prod} && rm -rf ~/.npm/ | npm run ${LARAVEL_ENV:=prod} && rm -rf ~/.npm/ | ||||
fix-permissions ./ | fix-permissions ./ |