This is a custom script for deploying on a Virtual Private Server. You are encouraged to modify it by adding your own commands. This is running Laravel and therefore the folder structure is tuned to that scenario. PR welcomed.
- ssh into server.
- clone this repo
- make it executable: " chmod u+x server.sh "
- run: " bash -x server.sh "
- It would prompt you to specify the Github or Gitlab repo to clone. (Just cut and paste the repo).
- It should now prompt you to specify the folder name: eg "my_new_website" which corresponds to "/var/www/html/public/my_new_website/". Basically where your website/Web Application files are stored.
- FFor Laravel, Specify your .env file