Brayworth Web Site
Deploy to Web Server
- Create a user account to run composer in
useradd -m -s /bin/bash [user]
- Create a folder to hold the deployment
mkdir /opt/data
chmod 777 /opt/data
- Switch to that user and pull in the repository
su [user]
git clone https://github.com/bravedave/brayworth-www.git brayworth
cd brayworth
composer install
- To stay up-to-date
cd /opt/data/brayWorth
su [user]
git pull - maybe git fetch -p is better
composer update