Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vipin93's avatar

How to deploy laravel project manually

Hey I try to deploy my project manually on my DO server due to money problem , I dont want use Forge now may be in future I'll be using Shh key on ubuntu server is ther any other alternative of Forge

Thanks

0 likes
8 replies
christopher's avatar

Do you host your application on github or on your local drive ?

This is the little "deploy script" of forge:

cd /home/forge/default
git pull origin master
composer install
php artisan migrate --force

Or you could connect with SFTP to your Server and upload your project manually to your /var/www/whateverpublic directory. Then log in to your Server and do a composer update.

Of course you can also install a FTP Server for example pureftp and connect with a FTP user and upload your files.

There`re several ways to push your app to your server.

1 like
vipin93's avatar

@hostianer I have account on bigbucket ,One thing that when I change my script and push to the master branch which is on bigbucket how can automatically change on my server also

vipin93's avatar

How can I save my database data and move to other server provider and use database data which i save from previos service provider

christopher's avatar

You could install an GUI like PHPmyadmin or you can just import/export your database table with the console.

mysql -u username -p database_name < file.sql
RogerManich's avatar

Hi, I am in the same page. I want to deploy Laravel manually due a limitation on the production server which is barely a hosting with FTP access and phpmyadmin access. It is clear how to import database. I am in learning stage but I want to test some things on production server (if requirements are ok). My question is: Uploading what? All the folders in laravel project are part of the production part?

RogerManich's avatar

@martinbean it was to avoid the scenario where somebody tell me this question is already open. I didn't realize that it was an old post. Sorry :-)

Please or to participate in this conversation.