{"id":22125617,"url":"https://github.com/jacmoe/yii2-app-basic-deployer","last_synced_at":"2025-07-25T16:32:35.016Z","repository":{"id":56995598,"uuid":"50066367","full_name":"jacmoe/yii2-app-basic-deployer","owner":"jacmoe","description":"Yii 2 Basic Application Template with Deployer.php support","archived":false,"fork":false,"pushed_at":"2016-03-19T19:04:01.000Z","size":62,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-14T21:43:04.476Z","etag":null,"topics":["yii2","yii2-application-template"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacmoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-20T22:57:38.000Z","updated_at":"2024-01-29T11:15:34.000Z","dependencies_parsed_at":"2022-08-21T13:50:37.161Z","dependency_job_id":null,"html_url":"https://github.com/jacmoe/yii2-app-basic-deployer","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacmoe%2Fyii2-app-basic-deployer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacmoe%2Fyii2-app-basic-deployer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacmoe%2Fyii2-app-basic-deployer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacmoe%2Fyii2-app-basic-deployer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacmoe","download_url":"https://codeload.github.com/jacmoe/yii2-app-basic-deployer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227594303,"owners_count":17791103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["yii2","yii2-application-template"],"created_at":"2024-12-01T16:36:02.349Z","updated_at":"2024-12-01T16:36:03.049Z","avatar_url":"https://github.com/jacmoe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yii 2 Basic Project Template with Deployer.php support.\n==========================================================\n\nYii 2 Basic Project Template with Deployer.php support is a skeleton [Yii 2](http://www.yiiframework.com/) application for\nrapidly creating projects.\n\nThe template contains the basic features including user login/logout and a contact page.\nIt includes all commonly used configurations that would allow you to focus on adding new\nfeatures to your application.\n\n[![Latest Stable Version](https://poser.pugx.org/jacmoe/yii2-app-basic-deployer/v/stable.png)](https://packagist.org/packages/jacmoe/yii2-app-basic-deployer)\n[![Total Downloads](https://poser.pugx.org/jacmoe/yii2-app-basic-deployer/downloads.png)](https://packagist.org/packages/jacmoe/yii2-app-basic-deployer)\n\nHOW IS THIS DIFFERENT FROM STANDARD BASIC APP?\n----------------------------------------------\n* This project can be deployed by Deployer\n* `config/db.php` and `yii` is generated automatically\n* An `.htaccess` is added to the `web` folder and *FollowSymlinks* is turned on.\n* Project can be served directly from source on the development machine, but this requires manual setup - namely creating `yii` and `config/db.php`.\n\nHOW DOES IT WORK?\n-----------------\nSee my blog post [Deploying Yii with Deployer](https://jacmoe.dk/blog/2016/january/deploying-yii-with-deployer)\n\nRELATED\n--------\nSee also [yii2-app-advanced-deployer](https://github.com/jacmoe/yii2-app-advanced-deployer)\n\nDIRECTORY STRUCTURE\n-------------------\n\n      assets/             contains assets definition\n      commands/           contains console commands (controllers)\n      config/             contains application configurations\n      controllers/        contains Web controller classes\n      deployer/recipe     contains Deployer recipes\n      deployer/templates  contains templates configured by Deployer\n      deployer/stage      contains configuration file for Deployer\n      mail/               contains view files for e-mails\n      migrations/         contains migrations\n      models/             contains model classes\n      tests/              contains various tests for the application\n      vendor/             contains dependent 3rd-party packages\n      views/              contains view files for the Web application\n      web/                contains the entry script and Web resources\n\n\nREQUIREMENTS\n------------\n\nThe minimum requirement by this project template that your Web server supports PHP 5.4.0.\n\n## Deployer\n\n* [Download deployer.phar](http://deployer.org/deployer.phar)\n~~~\nmv deployer.phar /usr/local/bin/dep\nchmod +x /usr/local/bin/dep\n~~~\nFor more, see [Deployer - Installation](http://deployer.org/docs/installation)\n\n\nINSTALLATION\n------------\n## Install via Composer\n\nIf you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions\nat [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).\n\nYou can then install this project template using the following command:\n\n~~~\nphp composer.phar global require \"fxp/composer-asset-plugin:~1.1.1\"\nphp composer.phar create-project --prefer-dist --stability=dev jacmoe/yii2-app-basic-deployer basic\n~~~\n\n## Deployment\n\n### servers.yml\nFirst, create a file entitled `servers.yml` in the `deployer/stage` directory.  \nYou can copy the contents of `servers-sample.yml` to get you started.\n### Create db on server\nPrior to deployment, make sure that you have created a database on the server you want to deploy to.\n\n### deploy command\nWhen you have created a server configuration file, all you need to do is run this command:\n\n~~~\ndep deploy production\n~~~\nor\n~~~\ndep deploy local\n~~~\n\n**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.  \nIf 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`).\n\n#### Configure without deploy\nIt 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.\n\nSimply run:\n~~~\ndep inplace local\n~~~\nThis 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).\n\nCONFIGURATION\n-------------\nThe configuration is handled automatically from the values you wrote in `servers.yml` using the templates in `deployer/templates`.\n\n**NOTES:**\n- Refer to the README in the `tests` directory for information specific to basic application tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacmoe%2Fyii2-app-basic-deployer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacmoe%2Fyii2-app-basic-deployer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacmoe%2Fyii2-app-basic-deployer/lists"}