项目作者: contao

项目描述 :
Contao 4 deployer edition
高级语言: PHP
项目地址: git://github.com/contao/deployer-edition.git
创建时间: 2018-02-26T15:07:02Z
项目社区:https://github.com/contao/deployer-edition

开源协议:

下载


Contao 4 deployer edition

Contao is an Open Source PHP Content Management System for people who want a
professional website that is easy to maintain. Visit the project website
for more information.

What’s inside?

The Contao deployer edition is based on the Contao managed edition and
additionally includes Deployer, a deployment tool for PHP.

How to use

Install the Contao deployer edition with Composer:

  1. php composer.phar create-project contao/deployer-edition new-project

Initialize a Git repository in the new directory:

  1. cd new-project
  2. git init

Adjust the .gitignore, composer.json and deploy.php files to your needs,
run php composer.phar update and commit everything.

Shared resources

Shared resources are files and folders that are not in your Git repository and
shall be preserved during deployment. The shared resources need to be set up
before the first deployment, so create them on your target server:

  1. /var/www/target:
  2. shared/
  3. app/
  4. config/
  5. parameters.yml
  6. system/
  7. config/
  8. localconfig.php
  9. templates/
  10. var/
  11. logs/
  12. web/
  13. share/

Deploy

Now you can deploy by running vendor/bin/dep deploy on the command line.

Notes

Deployer will try to clone your repository during deployment, so you need to
have Git installed on the target server and the target server needs permission
to read your repository.

Other than in the managed edition, the files directory is not ignored in the
.gitignore file, because it is meant to be under version control.

If you want to put your custom templates under version control (recommended),
store them in app/Resources/contao/templates instead of in the templates
folder. This way you can still overwrite them with the Contao template editor.