Multiple implementations of the same back-end application. The aim is to provide quick, side-by-side comparisons of different technologies (languages, frameworks, libraries) while preserving consistent business logic across all implementations.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
940 B

#!/bin/sh
set -e
# Set group to www-data, but leave owner untouched
echo "Setting permissions..."
chgrp -R www-data /var/www/html
chmod -R g+ws /var/www/html
echo "Installing dependencies..."
su -s /bin/sh www-data -c "cd /var/www/html && composer install"
echo "Running tests..."
su -s /bin/sh www-data -c "php vendor/bin/phpunit tests"
echo "Initializing default users..."
su -s /bin/sh www-data -c "php /var/www/html/cli/initialize-default-users.php"
exec "$@"
# #!/bin/sh
# set -e
# echo "Setting permissions..."
# chgrp -R www-data /var/www/html
# chmod -R g+ws /var/www/html
# echo "Installing dependencies..."
# su -s /bin/sh www-data -c "cd /var/www/html && composer install"
# echo "Running tests..."
# su -s /bin/sh www-data -c "php vendor/bin/phpunit tests"
# echo "Initializing default users..."
# su -s /bin/sh www-data -c "php /var/www/html/cli/initialize-default-users.php"
# exec su -s /bin/sh www-data -c "$@"