drsxobip501258 2016-07-28 20: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-28 23: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.

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

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部