thegallagher/cakephp-app-paas 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thegallagher/cakephp-app-paas

最新稳定版本:0.1.4

Composer 安装命令:

composer create-project thegallagher/cakephp-app-paas

包简介

CakePHP skeleton app for Paas / Heroku

README 文档

README

This is a fork of CakePHP Application Skeleton.

A skeleton for creating applications with CakePHP 3.0.

The framework source code can be found here: cakephp/cakephp.

Installation

  1. Download Composer or update composer self-update.
  2. Run php composer.phar create-project --prefer-dist thegallagher/cakephp-app-paas [app_name].

If Composer is installed globally, run

composer create-project --prefer-dist thegallagher/cakephp-app-paas [app_name]

You should now be able to visit the path to where you installed the app and see the setup traffic lights.

Configuration

Configuration is done with environment variables or in config/.env. You can read config/.env for information on the available variables.

If you followed the above installation instructions to create your project, you will be asked to create config/.env. If you were not in interactive mode, you will need to use environment variables or cp config/default.env config/.env.

You may use any of the constants in config/paths.php by prefixing and suffixing the constant with two underscores (__). Eg. To use the LOGS constant, write __LOGS__ in the environment variable.

Deploying to Heroku

Make sure you have the Heroku toolbelt installed and logged in.

If you haven't already, create your repository:

git init
git add -A
git commit -m "Initial commit"

Create the app:

heroku apps:create
git push heroku master
heroku config:set SECURITY_SALT=[your-security-salt]

Create a MySQL database:

heroku addons:create cleardb
old_db_url=`heroku config:get CLEARDB_DATABASE_URL`
heroku config:set DATABASE_URL="$old_db_url"

Configure logs:

heroku config:set LOG_URL="console:///?levels[]=notice&levels[]=info&levels[]=debug"
heroku config:set LOG_ERROR_URL="console:///?levels[]=warning&levels[]=error&levels[]=critical&levels[]=alert&levels[]=emergency"

Notes

  • If you require multiple instances of your web process, you will need to configure your sessions to use database or cache.

Credits

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-08