The articles are listed in order below; you can read more meta-information about the guide below the table of contents.
.envfile, database migrations, and a few pre-deployment optimizations.
npm run buildscript. The frontend has a relatively minor role in this guide.
authorized_keysfile on the server; logging in over SSH).
I’ll generally show shell prompts in
username@host$ format, and sometimes append the current working directory
username@host:cwd$ for clarity:
# You on your development machine you@dev$ whoami you # A shell command issued as root user on the server root@server$ whoami root # A shell command issued as laravel user on the server laravel@server$ whoami laravel # A shell command issued as laravel user from home directory laravel@server:~$ pwd /home/laravel # A shell command issued as laravel user from /var/www laravel@server:/var/www$ pwd /var/www
18.104.22.168as a server IP address.
laravelas the name of the non-root user on your app’s server.
laravel-projectas the name of your project’s root server-side directory.
If you have ideas for improving the series, I will quite likely implement them, appreciate your input, and give you a shoutout for your contributions. Feedback is welcome and appreciated.
Shoutouts to readers: many thanks to Nicola Pugliese for offering good ideas on how improve this series.
Send me an email! Seriously, if this material helped you, it will make my day to know. I love hearing from readers, and you’ll almost certainly get a message back from me.
Below is a list of other great guides to deploying a Laravel app that I’ve found online and taken inspiration from. Each covers the material from a slightly different angle, so you’ll probably get something out of reading all of them.
The original writing and media in this series is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.