How to migrate deployed laravel project to Amazon webserver

I have deployed a laravel project on an Amazon webserver. I used my git repository to deploy it. I updated the composer on the server via the sync.sh file. Now I need to migrate using the artisan command. Here is my sync.sh file

#!/bin/bash
sudo chmod -R a+w /var/www/****serverName***/public_html/*projectName*
sudo php /usr/bin/composer  --working-dir=/var/www/*serverName*/public_html/*projectName*/ update

      

+3


source to share


1 answer


you can add the following line to sync.sh file. sudo php / var / www / **** serverName *** / public_html / projectName / artisan migrate



+1


source







All Articles