コンテンツにスキップ

はじめに - ダウンロード

ネクストエンジンアプリ基盤のダウンロードページです

現在、zipとgit形式でダウンロードができます

ダウンロード(.zip)

リポジトリを見る(Github)

ダウンロードしたネクストエンジンアプリ基盤を動作させるための準備を行います

  1. composerで必要なパッケージを読み込む
  2. DBの接続設定の更新
  3. ネクストエンジンアプリ基盤の更新を取り込む設定

を行います

composerで必要なパッケージを読み込む

Section titled “composerで必要なパッケージを読み込む”
Terminal window
$ cd /path/to/sample-fuelphp/
$ php composer.phar self-update
$ php composer.phar update

composerパッケージの読み込みが完了したら、

次はfuel/app/config/development/db.phpを編集します

ローカルの開発環境に合わせて、DBの接続情報を設定します

設定を更新したら、動作確認を兼ねてマイグレーションを実行します

正しく設定されていれば、マイグレーションが実行できます

Terminal window
$ 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の設定がされているかご確認下さい

PHP: 実行時設定 - Manual

ネクストエンジンアプリ基盤の更新を取り込む設定

Section titled “ネクストエンジンアプリ基盤の更新を取り込む設定”

変更された箇所を手動でプロジェクトに取り込む必要があります

git版をご利用の方は、gitを用いて更新された箇所を取り込むことができます

Terminal window
$ git remote rm origin # ネクストエンジンアプリ基盤への参照を切る
$ git remote add base https://github.com/hamee-dev/app-template-fuel # baseというオリジン名でネクストエンジンアプリ基盤を参照する

baseというオリジン名は特別な意味を持つわけではないため、必要であれば別名をご利用下さい

この設定を事前にしておき、ネクストエンジンアプリ基盤の更新を取り込む際には

Terminal window
$ git pull base master # baseオリジンの更新を取得する(baseは設定したオリジン名)

と実行することでネクストエンジンアプリ基盤の更新を取り込むことができます

コンフリクトした際は解消をお願い致します


  • 2015/02/17: はじめに - ダウンロードページ作成