Initial commit
This commit is contained in:
9
config/frameworks/00-nginx-site.sh
Normal file
9
config/frameworks/00-nginx-site.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -f /application/.nginx-site.conf ]; then
|
||||
echo " -- Installing nginx website config..."
|
||||
cp -F /application/.nginx-site.conf /etc/nginx/sites-enabled/default.conf
|
||||
fi
|
||||
|
||||
# scripts at level 00 should not end the framework setup
|
||||
exit 1
|
9
config/frameworks/10-symfony.sh
Normal file
9
config/frameworks/10-symfony.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -f /application/symfony.lock ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo " == Detected symfony project."
|
||||
cd /application
|
||||
/usr/bin/composer install --no-dev --no-cache --optimize-autoloader --no-progress
|
9
config/frameworks/90-composer.sh
Normal file
9
config/frameworks/90-composer.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -f /application/composer.json ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo " == Detected composer project."
|
||||
cd /application
|
||||
/usr/bin/composer install --no-dev --no-cache --optimize-autoloader --no-progress
|
3
config/frameworks/99-sorry.sh
Normal file
3
config/frameworks/99-sorry.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo " ** Sorry, no framework detected."
|
Reference in New Issue
Block a user