Page MenuHomePhorge

No OneTemporary

diff --git a/src/.s2i/bin/assemble b/.s2i/bin/assemble
similarity index 83%
rename from src/.s2i/bin/assemble
rename to .s2i/bin/assemble
index 24c526b0..fe64a116 100755
--- a/src/.s2i/bin/assemble
+++ b/.s2i/bin/assemble
@@ -1,56 +1,60 @@
#!/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/
+pushd /tmp/src/
+echo "---> Configuring config.${LARAVEL_ENV:-prod}..."
if [ -d "config.${LARAVEL_ENV:-prod}/src/" ]; then
find -L "config.${LARAVEL_ENV:-prod}/src/" -type f | while read file; do
dir=$(dirname $file | sed -r -e "s|config.${LARAVEL_ENV:-prod}/src|src|g")
if [ ! -d "${dir}" ]; then
mkdir -p ${dir}
fi
cp -av ${file} ${dir}/.
done
+else
+ echo "---> Configuring directory config.${LARAVEL_ENV:-prod} is missing."
fi
-rm -rf config.*/
+popd
+
+echo "---> Installing application source..."
+rm -fR /tmp/src/src/.git
+mv /tmp/src/src/* ./
pushd /opt/app-root/src/
+rm -rf /tmp/src/
rm -rf .env
fix-permissions ./
if [ -f "composer.json" ]; then
echo "--->> Detected composer.json, running install"
composer_install
fi
./artisan horizon:install
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 ./
diff --git a/src/.s2i/bin/run b/.s2i/bin/run
similarity index 100%
rename from src/.s2i/bin/run
rename to .s2i/bin/run

File Metadata

Mime Type
text/x-diff
Expires
Sun, Jun 29, 12:08 AM (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
201453
Default Alt Text
(1 KB)

Event Timeline