[英]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 检查此链接
Apache Server Document Root Apache服务器文档根
DocumentRoot "/var/www/your-project-folder-name/public"
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.