
This will be short tutorial of how to move your Laravel application from localhost to your online host.
In this tutorial we will skip unnecessary talking and go straight to the point.
Let's begin:
- Zip your files in local.
- Move all the files and folders to your host root folder (zip file, and extract it there).
- Set your website url to
APP_URL
in.env
file. - Move files from public folder to your
public_html
folder in your server. - Edit
.env
file in root folder and changeAPP_ENV=local
fromlocal
toproduction
- Create database in your host.
- Set your database info in
.env
file. - Set your Mail info in
.env
file. - Zip (Extract) your local database.
- Upload Your zipped database in your host database (Import).
That's all.
- Last updated 3 years ago
Be the first to leave a comment.
You must login to leave a comment