Laravel Deployer

Laravel deployer for shared and free hosting! SSH and Composer are not required! Laravel 5.8, 6.x, 7.x and 8.x

How to deploy Download

HOW TO DEPLOY?


Necessary preparations

Before making a deployment, you must make the necessary preparations.

In the example below, we will use Laravel Deployer for Laravel 7.x but the steps to follow are the same for Laravel 5.8 and 6.x.

Suppose that the application folder is called "Laravel7" and the application name "MyApp".

1- Checking server requirements

Open the www.your-domain.com/laravel-deployer/ link in your browser, you should have like this:

LARAVEL 7.X DEPLOYER FOR SHARED AND FREE HOSTING
STEP 1
Server requirements
  • PHP version : 7.2.31Sufficient
  • Apache mod rewriteEnabled
  • BCMath PHP ExtensionEnabled
  • Ctype PHP ExtensionEnabled
  • Fileinfo PHP ExtensionEnabled
  • JSON PHP ExtensionEnabled
  • Mbstring PHP ExtensionEnabled
  • OpenSSL PHP ExtensionEnabled
  • PDO PHP ExtensionEnabled
  • Tokenizer PHP ExtensionEnabled
  • XML PHP ExtensionEnabled
Next step

If you see an error message, do the necessary by configuring your server. If all goes well, click on "Next step"

2- Creation of the .env file
LARAVEL 7.X DEPLOYER FOR SHARED AND FREE HOSTING
STEP 2
Environment configuration file form [.env]
Do not put "/" at the beginning or at the end.
Do not use space.
Examples : https://www.your-domain.com or https://www.subdomain.your-domain.com Do not put "/" at the end.
Mostly it's localhost. If you are unsure, ask your hosting provider.
Mostly it's 3306. If you are unsure, ask your hosting provider.
The user must have all permissions on the database.
Use information from your hosting provider.
Use information from your hosting provider.
Usually it's email address.

Fill out the form and click on "Create [.env] file". You should have this:

LARAVEL 7.X DEPLOYER FOR SHARED AND FREE HOSTING
STEP 2
Environment configuration file [.env]
Next step : Preparation of various files

Click on "Next step : Preparation of various files".

3- Preparing various files
LARAVEL 7.X DEPLOYER FOR SHARED AND FREE HOSTING
STEP 3
Preparing various files
Next step : Clear caches

Click on "Next step : Clear caches".

4- Removing caches, migrate tables and seed database
LARAVEL 7.X DEPLOYER FOR SHARED AND FREE HOSTING
FINAL STEPS
Removing caches
Next step : Migrate tables

Click on "Next step : Migrate tables". You should have this:

LARAVEL 7.X DEPLOYER FOR SHARED AND FREE HOSTING
FINAL STEPS
Migrate tables
Next step : Seed database

Click on "Next step : Seed database".

LARAVEL 7.X DEPLOYER FOR SHARED AND FREE HOSTING
FINAL STEPS
Seed database
Create a symbolic link
Yes ! Create a symlik Do not create a symlink. Go to the next step

It is recommended that you create a symbolic link for accessing files in your application's "storage" folder. If you want to create a symbolic link, click on "Yes ! Create a symlink". Otherwise, click "Do not create a symlink. Go to the next step", you will skip a step.

6- Create symlink (If you clicked on "Yes! Create a symlink")

If you need information, read the Laravel 7.x documentation: https://laravel.com/docs/7.x/filesystem#the-public-disk

LARAVEL 7.X DEPLOYER FOR SHARED AND FREE HOSTING
FINAL STEPS
Create symlink
Next step : Delete deployment files

Click on "Next step : Delete deployment files", this will delete the Laravel Deployer files in your application.

7- Configuration of the [.htaccess] file
LARAVEL 7.X DEPLOYER FOR SHARED AND FREE HOSTING
FINAL STEPS
Configuration of the [.htaccess] file

Choose "yes" or "no" depending on your server configuration. Click on "Submit". Deployment is complete.

LARAVEL 7.X DEPLOYER FOR SHARED AND FREE HOSTING
FINAL STEPS
End of deployment
Go to your website

Delete the "laravel-deployer" folder from your server.

Want to see examples of deployment done with Laravel Deployer? See here.

planethoster free web hosting
© Copyright 2023 Laravel-Deployer.com | All rights reserved