Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
333 views
Welcome To Ask or Share your Answers For Others

1 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...