R
R
Roman2019-01-29 15:26:04
Laravel
Roman, 2019-01-29 15:26:04

Easiest way to migrate Laravel from local machine to VPS running Ubuntu 16.04 Server (LAMP already configured)?

Hello.
I am quite new to Laravel. Working with Laravel in VirtualBox under Ubuntu 16.04. I run Laravel through the server built into it (php artisan serve). Please tell me:
- What is the minimum sufficient set of actions to transfer what I have built to a VPS under Ubuntu 16.04 Server (LAMP is already configured)?
Is it enough to just copy the contents of the public folder to the public_html of the web server, dump the database, and... that's all?)) (let's say the data for connecting to the database is the same and you don't need to edit it).
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kuznetsov, 2019-01-29
@procode

0. Globally, you install only composer.
1. Move the laravel application folders to the domain folder on the server.
2. In the Web server config, specify the path instead of your_site.ru as your site.ru/public.
3. Do a migration (if you want to start from scratch) or copy from a local database to a new one.
4. You may also need to configure the Web server itself, but that's another story.
PS: Maybe I misunderstood something, but as I remember, I did just that.

O
OnYourLips, 2019-01-29
@OnYourLips

Is it enough to just copy the contents of the public folder to the public_html of the webserver
No, this directory only contains index.php and assets.
It is necessary to copy the level above (application root).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question