Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

moving Laravel project between computers

I have been working on a laravel5 project on a computer , but now I want to continue on an other, but don't know how :(

I'm using wampserver and the project is in the "www" folder, this is the error I'm getting when trying to open the project: " Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request"

See Question&Answers more detail:os

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

1 Reply

0 votes
by (71.8m points)

Your error message is very vague, so it is hard to pinpoint the cause. I assume you just copy pasted all of the project files

Try these steps:

  1. Make sure you copy all of the project files including the hidden ones(.env).
  2. Prepare your destination computer as in http://laravel.com/docs/
  3. Check you have all the necessary PHP extensions available in php.ini as in above link requirements. Also, watch your PHP version!
  4. Install composer https://getcomposer.org/doc/00-intro.md
  5. When copied, go to your destination folder and run composer install.
  6. Run php artisan key:generate from the command line.

  7. Run php artisan cache:clear from command line

    http://php.net/manual/en/install.windows.commandline.php
    
  8. Make sure your webserver is serving pages from project/public folder.

If laravel is failing, check the log file to see the cause

your_project/storage/logs/laravel.log

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...