I am new to Laravel. I have a live project done by my colleague. I need to make some changes in the project. How can I move this project from live to local. I just downloaded the project and save to my localhost but it is not working. What are the changes need to setup this on local server
1条回答 默认 最新
- dongxu1668 2018-12-26 15:35关注
Generally speaking, that approach should be fine as long as you treat your local copy as a fresh Laravel installation. In other words, you'll probably need to update your local .env file with your database connections and app properties (or by adjusting appropriate files in the config directory) and then open a command prompt and navigate to your local copy and run
run npm install
,composer install
,php artisan migrate
andnpm run dev
.This will install any missing dependencies that your app requires, setup your local database and recompile local assets like css and javascript. Once that is successful, you should be able to run
php artisan serve
and browser to http://127.0.0.1:8000/ to confirm everything is up and running.本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报