doulaobi7988 2018-12-26 09:29
浏览 12
已采纳

将laravel项目从现场搬到当地

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 and npm 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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?