Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2513125
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/.s2i/bin/assemble b/src/.s2i/bin/assemble
index 46b36288..30ca417c 100755
--- a/src/.s2i/bin/assemble
+++ b/src/.s2i/bin/assemble
@@ -1,42 +1,45 @@
#!/bin/bash
set -x
set -e
function composer_install () {
echo "--->> Detected composer.json, running install"
php -dmemory_limit=${COMPOSER_MEMORY_LIMIT:--1} /usr/bin/composer install ${COMPOSER_ARGS}
rm -rf ~/.cache/composer/
}
shopt -s dotglob
echo "--->> $(rm -vrf vendor/ composer.lock)"
echo "---> Installing application source..."
rm -fR /tmp/src/.git
mv /tmp/src/* ./
pushd /opt/app-root/src
fix-permissions ./
if [ -f ".env.local" ]; then
# Ensure there's a line ending
echo "---->> Append .env.local"
echo "" >> .env
cat .env.local >> .env
fi
if [ -f "composer.json" ]; then
echo "--->> Detected composer.json, running install"
composer_install
fi
./artisan horizon:install
-./artisan data:import:open-exchange-rates
+
+if [ ! -z "${OPENEXCHANGERATES_API_KEY}" ]; then
+ ./artisan data:import:open-exchange-rates
+fi
echo "---->> Run npm run prod"
npm install
npm run ${LARAVEL_ENV:=prod} && rm -rf ~/.npm/
fix-permissions ./
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Apr 18, 10:06 AM (2 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
435572
Default Alt Text
(1 KB)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment