search

Home  >  Q&A  >  body text

Deploying laravel - How to deploy laravel project to the server?

Excuse me, how to deploy the laravel project to the server? What about things like
composer? I have no idea at all. Please give me a detailed explanation. I'm a newbie and I'd be very grateful!

我想大声告诉你我想大声告诉你2861 days ago1000

reply all(4)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 16:56:28

    First install composer, http://www.phpcomposer.com/
    Run it in shell
    composer create-project laravel/laravel 你的路径 版本

    Give the storagefolder write permissions,
    set pseudo-static:
    nginx:

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    apache:

    Options +FollowSymLinks
    RewriteEngine On
    
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 16:56:28

    Well, I have been in contact with laravel recently. Let me write about it. The answer is as follows:

    Article tutorial:

    Server environment setup:/a/1190000002955111

    Server deployment laravel: /a/1190000002955120

    Video tutorial:

    Alibaba Cloud deploys laravel: https://laravist.com/series/something-that-a-little-helpful

    composer series video: https://laravist.com/series/you-must-use-composer

    Finally, the laravist site I wrote recently uses laravel, so I think I have a little experience.

    Above

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-16 16:56:28

    https://laravel.tw/docs/5.1/installation Rarely see larave

    reply
    0
  • 高洛峰

    高洛峰2017-05-16 16:56:28

    CentOS7.x build lamp php7 environment and deploy laravel project

    There is also [[Video] Deploy LNMP environment in ubuntu under Alibaba Cloud ESC (enable mysql remote and multi-domain name access) and configure laravel project][2]

    Deploy LAMP under Ubuntu 14.04 (enable mysql remote and multi-domain name access) and configure the laravel project

    reply
    0
  • Cancelreply