简体   繁体   English

在cPanel上部署Symfony2应用

[英]Deploy a Symfony2 app on cPanel

I'm new to cPanel and I want to deploy my Symfony2 app on it. 我是cPanel的新手,我想在其上部署我的Symfony2应用程序。 I need some guidance on how to do it, I downloaded the Symfony2 framework with the Softaculous Apps Installer. 我需要有关如何执行操作的指导,我通过Softaculous Apps Installer下载了Symfony2框架。

PS : My app is also on BitBucket. PS:我的应用程序也在BitBucket上。

First off all: CPanel is just a web-shell arround your linux os that makes it easy to maintain your server from distance through a web interface. 首先,CPanel只是围绕Linux操作系统的Web外壳,可轻松通过Web界面从远处维护服务器。

Actualy you do not need softaculous because it just installs an empty new symfony project. 实际上,您不需要软启动,因为它只安装了一个空的新symfony项目。

There are globally two ways to install your symfony project. 全局上有两种安装symfony项目的方法。

  1. Install git and Composer on your server, use git to pull the project from bitbucket and install the the vendors with 'composer install' or 'composer update'. 在您的服务器上安装git和Composer,使用git从bitbucket中提取项目,并使用“ composer install”或“ composer update”安装供应商。

  2. Upload your complete project from your local computer to the server with FTP. 使用FTP将完整的项目从本地计算机上载到服务器。

In both ways you still have to install your database and set your configuration. 通过两种方式,您仍然都必须安装数据库并设置配置。

如果您有共享的在线服务器,则只需通过FTP复制整个symfony项目,在parameters.yml设置数据库凭据,然后手动删除var (symfony≥2.8)或app (symfony≤2.7)内的prod目录。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM