web/scripts/docker/start-server.sh
Robin Whittleton 39d21db8c7 Amend dockerfile to work with a bind mount
This will mount the current directory as the code for the site in the container.
2021-02-11 16:21:15 -06:00

13 lines
547 B
Bash
Executable file

#!/bin/sh
cd /standardebooks.org/web
composer install
ln -s /standardebooks.org/web/config/apache/standardebooks.test.conf /etc/apache2/sites-available/
ln -s /standardebooks.org/web/config/php/fpm/standardebooks.org.ini /etc/php/*/cli/conf.d/
ln -s /standardebooks.org/web/config/php/fpm/standardebooks.org.ini /etc/php/*/fpm/conf.d/
ln -s /standardebooks.org/web/config/php/fpm/standardebooks.test.conf /etc/php/*/fpm/pool.d/
a2ensite standardebooks.test
/etc/init.d/apache2 start
service php7.4-fpm restart
tail -f /var/log/apache2/error.log