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

Categories

0 votes
350 views
in Technique[技术] by (71.8m points)

php - 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?

See Question&Answers more detail:os

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

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...