Files
sccs_laravel/Step by Step git commands to deoploy laravel project.txt
2025-11-04 16:23:40 +05:00

24 lines
1.1 KiB
Plaintext

Here are the steps to deploy a Laravel project from GitHub:
Install Git on your server if it's not already installed.
Clone the repository from GitHub by running the following command in the terminal:
1. git clone https://github.com/username/repository-name.git
2. Change into the project directory:
3. cd repository-name
4. Install all the dependencies by running the following command:
5. composer install
6. Create a new .env file by copying the example file:
7. cp .env.example .env
8. Generate an app encryption key:
9. php artisan key:generate
10. php artisan storage:link
11. Configure the database settings in the .env file.
12. Run the following command to create the database tables:
13. php artisan migrate
14. (Optional) Seed the database with sample data:
15. php artisan db:seed
16. Configure your web server to point to the project's public directory.
17. (Optional) Run the following command to optimize the framework for better performance:
18. php artisan optimize
19. (Optional) To run the queue worker, schedule the command on cron or run php artisan queue:work