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.

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

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大