Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 4 and the way to deploy app using FTP

I have a question about the way used to deploy a Laravel Application.

I have developed my application locally using Composer.

Now, I'm ready to deploy this application to the production.

I have (at the moment) a production server that use only FTP..

I have read this forum: Laravel Forum

but I think that this is not correct..

I have created a directory on my server for example: http://wwww.myserver.com/app

In the /app directory I copied (by FTP) all my files...

But this not work..I have to change something?

like image 869
Safari Avatar asked Feb 25 '14 18:02

Safari


People also ask

Where can I deploy laravel app for free?

Laravel Deployer They offer free hosting called WorldLite. You can use a subdomain or your own domain name after registration. Instant activation, fast and secure server. AwardSpace is also a serious host.


1 Answers

Let's say your doc. root folder is www

  1. Create a folder called laravel on your shared hosting (outside of www) and upload your application structure to this folder, except the public folder.
  2. Upload your public folder's content into the www folder
  3. Adjust the path structure in the bootstrap/paths.php file.
  4. Also change the paths in the www/index.php file to locate the new laravel folder.
  5. Done.

There are 2 more solutions (and my one in more detailed as well) in the following article as well:

http://driesvints.com/blog/laravel-4-on-a-shared-host

like image 200
Sas Sam Avatar answered Oct 16 '22 16:10

Sas Sam