diff --git a/src/.s2i/bin/assemble b/src/.s2i/bin/assemble --- a/src/.s2i/bin/assemble +++ b/src/.s2i/bin/assemble @@ -38,6 +38,14 @@ ./artisan data:import:open-exchange-rates fi +if [ ! -z "${OAUTH_PRIVATE_KEY}" ]; then + echo "${OAUTH_PRIVATE_KEY}" > /tmp/src/storage/oauth-private.key +fi + +if [ ! -z "${OAUTH_PUBLIC_KEY}" ]; then + echo "${OAUTH_PUBLIC_KEY}" > /tmp/src/storage/oauth-public.key +fi + echo "---->> Run npm run prod" npm install npm run ${LARAVEL_ENV:=prod} && rm -rf ~/.npm/