Deployment


Configure Web Server

Install SSL

Connecting to the production server

Via SSH

ssh username@IP

Via FTP

  1. Open File Manager on your computer.
  2. Find the “Connect to Server” button in the leftside panel of the File Manager.
  3. In the window that appears, enter an address in this format: ftp://username@IP
  4. 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

  1. Install Project Dependencies
  2. Edit .env File
  3. Compile Project Assets
  4. Migrate Tables

    1. Install Project Dependencies

    composer install
    

2. Edit .env File

Read More

3. Compile Project Assets

npm run dev

or

npm run watch

4. Migrate Tables

php artisan migrate