drsxobip501258 2016-07-29 04:25
浏览 163
已采纳

在wamp上安装现有的laravel项目进行预生产

I have a existing laravel project that I have been working on for a while now.

I have to put it in a test environnement to show it to my employer. My problem is that I have no clue how to use my git repo of the project to put it on a fresh installation of wamp server.

1 - I have tried to install it as a whole but failed.

2- Then, I tried creating a fresh copy of Laravel base architecture (that worked) and after, replacing the files I modified on my existing project over on the fresh Laravel project. Turns out, it can not find my login.php page and I am stuck at that point.

So I want to find the easiest way to clone a git repo with an existing Laravel project directly on a wamp server and make it work.

I have been trying for several weeks, please help me.

Thanks

  • 写回答

1条回答 默认 最新

  • dongpin6941 2016-07-29 07:13
    关注

    Okay, here are some simple steps to create a copy of your Laravel5 project on another server:

    1. Setup the server (Databases, PHP and so on) and install Composer. If you are local, composer should already be installed
    2. Clone the repository and copy the content to the htdocs or var/www folder, depending on your server system
    3. Now execute composer update to load all dependencies
    4. Last but not least, setup your .env file. Use the .env.example from Laravel5, add your credentials, generate a key with php artisan key:generate

    That's it. Now your Laravel5 project should run.

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

报告相同问题?

悬赏问题

  • ¥15 为啥画版图在Run DRC会出现Connect Error?可我Calibre的hostname和计算机的hostname已经设置成一样的了。
  • ¥20 网站后台使用极速模式非常的卡
  • ¥20 Keil uVision5创建project没反应
  • ¥15 mmseqs内存报错
  • ¥15 vika文档如何与obsidian同步
  • ¥15 华为手机相册里面的照片能够替换成自己想要的照片吗?
  • ¥15 陆空双模式无人机飞控设置
  • ¥15 sentaurus lithography
  • ¥100 求抖音ck号 或者提ck教程
  • ¥15 关于#linux#的问题:子进程1等待子进程A、B退出后退出(语言-c语言)