はじめに - ダウンロード
はじめに - ダウンロード
Section titled “はじめに - ダウンロード”ネクストエンジンアプリ基盤のダウンロードページです
現在、zipとgit形式でダウンロードができます
ダウンロード後の下準備
Section titled “ダウンロード後の下準備”ダウンロードしたネクストエンジンアプリ基盤を動作させるための準備を行います
- composerで必要なパッケージを読み込む
- DBの接続設定の更新
- ネクストエンジンアプリ基盤の更新を取り込む設定
を行います
composerで必要なパッケージを読み込む
Section titled “composerで必要なパッケージを読み込む”$ cd /path/to/sample-fuelphp/$ php composer.phar self-update$ php composer.phar updateDBの接続設定の更新
Section titled “DBの接続設定の更新”composerパッケージの読み込みが完了したら、
次はfuel/app/config/development/db.phpを編集します
ローカルの開発環境に合わせて、DBの接続情報を設定します
設定を更新したら、動作確認を兼ねてマイグレーションを実行します
正しく設定されていれば、マイグレーションが実行できます
$ php oil r migrate --packages=baseこのとき、
「Error - date_default_timezone_get(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in COREPATH/classes/fuel.php on line 161」
というエラーが出たら、php.iniでdate.timezoneの設定がされているかご確認下さい
ネクストエンジンアプリ基盤の更新を取り込む設定
Section titled “ネクストエンジンアプリ基盤の更新を取り込む設定”zip版をご利用の場合
Section titled “zip版をご利用の場合”変更された箇所を手動でプロジェクトに取り込む必要があります
git版をご利用の場合
Section titled “git版をご利用の場合”git版をご利用の方は、gitを用いて更新された箇所を取り込むことができます
$ git remote rm origin # ネクストエンジンアプリ基盤への参照を切る$ git remote add base https://github.com/hamee-dev/app-template-fuel # baseというオリジン名でネクストエンジンアプリ基盤を参照するbaseというオリジン名は特別な意味を持つわけではないため、必要であれば別名をご利用下さい
この設定を事前にしておき、ネクストエンジンアプリ基盤の更新を取り込む際には
$ git pull base master # baseオリジンの更新を取得する(baseは設定したオリジン名)と実行することでネクストエンジンアプリ基盤の更新を取り込むことができます
コンフリクトした際は解消をお願い致します
- 2015/02/17: はじめに - ダウンロードページ作成