2017 © Pedro Peláez
 

project yii2-app-basic-deployer

Yii 2 Basic Project Template with Deployer.php support

image

jacmoe/yii2-app-basic-deployer

Yii 2 Basic Project Template with Deployer.php support

  • Saturday, March 19, 2016
  • by jacmoe
  • Repository
  • 1 Watchers
  • 4 Stars
  • 134 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 15 Versions
  • 4 % Grown

The README.md

Yii 2 Basic Project Template with Deployer.php support.

Yii 2 Basic Project Template with Deployer.php support is a skeleton Yii 2 application for rapidly creating projects., (*1)

The template contains the basic features including user login/logout and a contact page. It includes all commonly used configurations that would allow you to focus on adding new features to your application., (*2)

Latest Stable Version Total Downloads, (*3)

HOW IS THIS DIFFERENT FROM STANDARD BASIC APP?

  • This project can be deployed by Deployer
  • config/db.php and yii is generated automatically
  • An .htaccess is added to the web folder and FollowSymlinks is turned on.
  • Project can be served directly from source on the development machine, but this requires manual setup - namely creating yii and config/db.php.

HOW DOES IT WORK?

See my blog post Deploying Yii with Deployer, (*4)

See also yii2-app-advanced-deployer, (*5)

DIRECTORY STRUCTURE

  assets/             contains assets definition
  commands/           contains console commands (controllers)
  config/             contains application configurations
  controllers/        contains Web controller classes
  deployer/recipe     contains Deployer recipes
  deployer/templates  contains templates configured by Deployer
  deployer/stage      contains configuration file for Deployer
  mail/               contains view files for e-mails
  migrations/         contains migrations
  models/             contains model classes
  tests/              contains various tests for the application
  vendor/             contains dependent 3rd-party packages
  views/              contains view files for the Web application
  web/                contains the entry script and Web resources

REQUIREMENTS

The minimum requirement by this project template that your Web server supports PHP 5.4.0., (*6)

Deployer

mv deployer.phar /usr/local/bin/dep
chmod +x /usr/local/bin/dep

For more, see Deployer - Installation, (*7)

INSTALLATION

Install via Composer

If you do not have Composer, you may install it by following the instructions at getcomposer.org., (*8)

You can then install this project template using the following command:, (*9)

php composer.phar global require "fxp/composer-asset-plugin:~1.1.1"
php composer.phar create-project --prefer-dist --stability=dev jacmoe/yii2-app-basic-deployer basic

Deployment

servers.yml

First, create a file entitled servers.yml in the deployer/stage directory.
You can copy the contents of servers-sample.yml to get you started., (*10)

Create db on server

Prior to deployment, make sure that you have created a database on the server you want to deploy to., (*11)

deploy command

When you have created a server configuration file, all you need to do is run this command:, (*12)

dep deploy production

or, (*13)

dep deploy local

Note that the server configuration for the local stage needs to have a key called local because that will make Deployer create a local server that doesn't use ssh.
If the active stage does not have local set for the server, you need an ssh server on your local machine (sudo apt-get install openssh-server)., (*14)

Configure without deploy

It is very common to serve the project in place when developing, and therefore this project template ships with a function to configure files, set writable directories and install vendors., (*15)

Simply run:, (*16)

dep inplace local

This command assumes that you've set the deploy dir in the servers.yml configuration file to point to your current source directory (the directory you are in)., (*17)

CONFIGURATION

The configuration is handled automatically from the values you wrote in servers.yml using the templates in deployer/templates., (*18)

NOTES: - Refer to the README in the tests directory for information specific to basic application tests., (*19)

The Versions

19/03 2016

dev-master

9999999-dev

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer

24/01 2016

2.0.6

2.0.6.0

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer

22/01 2016

2.0.5

2.0.5.0

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer

22/01 2016

2.0.4

2.0.4.0

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer

22/01 2016

2.0.3

2.0.3.0

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer

21/01 2016

2.0.2

2.0.2.0

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer

21/01 2016

2.0.0

2.0.0.0

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer

21/01 2016

1.5.1

1.5.1.0

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer

21/01 2016

1.5.0

1.5.0.0

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer

21/01 2016

1.0.5

1.0.5.0

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer

21/01 2016

1.0.4

1.0.4.0

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer

21/01 2016

1.0.3

1.0.3.0

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer

21/01 2016

1.0.2

1.0.2.0

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer

21/01 2016

1.0.1

1.0.1.0

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer

21/01 2016

1.0.0

1.0.0.0

Yii 2 Basic Project Template with Deployer.php support

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 project template basic deployer