Deployment
Configure Web Server
Install SSL
Connecting to the production server
Via SSH
ssh username@IP
Via FTP
- Open File Manager on your computer.
- Find the “Connect to Server” button in the leftside panel of the File Manager.
- In the window that appears, enter an address in this format:
ftp://username@IP
- Click “Connect”, then enter the server’s password.
Updating document root
/var/cpanel/userdata/USERNAME/DOMAIN.COM
rm -fv /var/cpanel/userdata/USERNAME/DOMAIN.COM.cache
Rebuild Configuration Files
/scripts/updateuserdatacache
/scripts/rebuildhttpdconf
Restart Apache
Go to WMH, search for HTTP Server (Apache) and click the “Restart Server” button Further Reading
Building the Project
- Install Project Dependencies
- Edit .env File
- Compile Project Assets
Migrate Tables
1. Install Project Dependencies
composer install
2. Edit .env File
3. Compile Project Assets
npm run dev
or
npm run watch
4. Migrate Tables
php artisan migrate