Create a new Laravel project with composer:
$ composer create-project Laravel/Laravel myproject
Create the database for the project:
$ mysql -uroot
# stop script on error signal | |
set -e | |
# remove old deployment folders | |
if [ -d "/home/forge/deploy" ]; then | |
rm -R /home/forge/deploy | |
fi | |
if [ -d "/home/forge/backup" ]; then | |
rm -R /home/forge/backup | |
fi |