Fork me on GitHub

Deploying to production

Before deploying to a production or live server, you should take care of a few tasks.

Combine and minimise

Although not required, it may be helpful to combine and minimise both the CSS and JS files. Add any CSS and JS file that you may have added to the styles and scripts command (respectively) in the gulpfile.js and run the gulp command with the --production command line parameter to trigger the minimization process, as shown below:

gulp --production

Review and encrypt settings

Carefully review the configuration of all settings and environment variables and consider encrypting the settings that may be sensitive. Settings can be encrypted via the web interface by checking the checkbox on the edit page of each setting or by using the artisan command. Remember to export and save to file all changed setting, encrypted or not.