shin1x1/laravel-base-project

基于 Laravel 4 的基础项目

dev-master 2014-09-18 01:19 UTC

This package is auto-updated.

Last update: 2024-09-12 19:38:56 UTC


README

Build Status

我的基于 Laravel 4 的基础项目

安装

使用 composer create-project 命令。

$ composer create-project shin1x1/laravel-base-project . -s dev

启用 Laravel 4 调试器

https://github.com/barryvdh/laravel-debugbar

$ php artisan debugbar:publish

部署到 Heroku

在 .gitignore 中删除 composer.lock。

$ vim .gitignore
composer.lock <--- remove it

git init。

$ git init

执行 heroku_create 命令。

$ ./heroku_create
Creating mighty-sea-4703... done, stack is cedar
http://xxxxxxxxxxxxx.herokuapp.com/ | git@heroku.com:xxxxxxxxxxxx.git
Git remote heroku added
Setting config vars and restarting xxxxxxxxxxx... done, v3
LARAVEL_ENV: heroku
Adding heroku-postgresql on xxxxxxxxx... done, v5 (free)
...

将应用程序部署到 Heroku。

$ git add .
$ git commit -m 'init'
$ git push heroku master