简体   繁体   English

如何在我的云服务器上部署laravel应用程序?

[英]How to deploy laravel application on my cloud server?

have server digitalocean cloud Ubuntu 16.04.2 x64 Apache 2.4 PHP 7.0.3 and SSL certificate Symantec, I was a Development application web site and am use Laravel 5 v 2.0 in localion host what is a step for upload file in server cloud? 拥有服务器digitalocean云Ubuntu 16.04.2 x64 Apache 2.4 PHP 7.0.3和Symantec证书Symantec,我是一个开发应用程序网站,并且在区域主机中使用Laravel 5 v 2.0,在服务器云中上传文件的步骤是什么? What is uplaod file in location to the server? 服务器位置中的uplaod文件是什么? How to deploy laravel application on my cloud server? 如何在我的云服务器上部署laravel应用程序?

Install Composer in your DO server. 在DO服务器中安装Composer。 with the following command. 使用以下命令。

cd ~
curl -sS https://getcomposer.org/installer | php

We want to install it in a globally accessible location though. 我们希望将其安装在可全局访问的位置。 Also, we want to change the name to composer. 另外,我们想将名称更改为作曲家。 We can do this in one step by typing: 我们可以通过输入以下内容一步一步完成:

sudo mv composer.phar /usr/local/bin/composer

Then install laravel in /var/www directory 然后在/var/www目录中安装laravel

sudo composer create-project laravel/laravel /var/www/laravel

Then give permissions to the directories. 然后授予目录权限。 Then you can access the site by visiting http://server_domain_or_IP 然后,您可以通过访问http://server_domain_or_IP来访问该站点

Then to move the files you worked to the server. 然后将您处理过的文件移动到服务器。 You need to create FTP. 您需要创建FTP。 Check this link 检查此链接

  1. Apache Server Document Root Apache服务器文档根

     DocumentRoot "/var/www/your-project-folder-name/public" 
  2. Restart Apache Server 重新启动Apache服务器

     For Centos #systemctl restart httpd For Ubuntu #service apache2 restart 

    That's it. 而已。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将Laravel应用程序从本地环境正确部署到远程服务器? - How correctly deploy a Laravel application from my local environment to my remote server? 如何在PHP和Google Cloud Platform上部署PHP应用程序? - How can I deploy my PHP application on Google cloud Platform? 如何在iPad应用程序的服务器和用户Web服务上部署vtigercrm Web服务 - How to deploy vtigercrm webservices on my server & user webservice in iPad application 如何将我的 ReactJS web 应用程序部署到生产服务器 - How to deploy my ReactJS web application to Production Server 如何在服务器上部署laravel项目? - How to deploy laravel project on Server? 如何在谷歌云中部署我的 php 代码? - How to deploy my php code in google cloud? 如何使用 github 操作部署 laravel 应用程序 - How to deploy laravel application using github action 如何在XAMPP Apache上正确部署Laravel应用程序? - How to correctly deploy a Laravel application on XAMPP Apache? 如何部署Laravel 4应用程序进行生产? - How can I deploy a Laravel 4 application for production? 如何将Laravel 5.1应用程序部署到CentOS 6.4 VPS(或任何其他!)服务器(PHP 5.5.32) - How to deploy Laravel 5.1 application to CentOS 6.4 VPS (or any!) server (PHP 5.5.32)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM