■Fuelphpにて環境の振り分け例

bootstrap.php の編集を行い、開発環境や本番環境の振り分けを行う。

例)
・ポートが8080の場合 → staging環境
・ホストが”localhost”の場合 → development環境
・上記に該当しない場合 → production環境

switch (isset($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : '') {

//テスト環境の場合
	case '8080':
		Fuel::$env = Fuel::STAGING;
		break;

//本番環境の場合(他の条件に該当しない)
	default:
		Fuel::$env = Fuel::PRODUCTION;
		break;
}

switch (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '') {

//開発環境の場合
	case 'localhost':
		Fuel::$env = Fuel::DEVELOPMENT;
		break;
}

139 Comments

  1. buy viagra germany says:

    Buy viagra https://onlineviagra.fo.team/

    Seriously many of very good information.

  2. ivermectine says:

    stromectol for scabies https://soncheebarxu.estranky.cz/clanky/stromectol-for-head-lice.html

    Thanks a lot, Good information!

  3. stromectol for lice says:

    buy generic stromectol https://lehyriwor.estranky.sk/clanky/stromectol-cream.html

    You stated that exceptionally well.

  4. dsdgbvda.zombeek.cz says:

    Viagra cost https://dsdgbvda.zombeek.cz/

    You reported this fantastically!

  5. stromectol stock says:

    dose for stromectol https://inflavnena.zombeek.cz/

    You actually revealed that fantastically.

  6. canadian pharcharmy online says:

    buy viagra 25mg https://network.myscrs.org/profile/422020/0

    Regards, Wonderful information.

  7. https://www.ecosia.org/search?q="My Canadian Pharmacy - Extensive Assortment of Medications – 2022" says:

    Viagra rezeptfrei https://www.ecosia.org/search?q=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    You actually expressed this superbly!

  8. canadian drugs says:

    no 1 canadian pharcharmy online https://seedandspark.com/user/canadian-pharmaceuticals-online

    You’ve made the point!

  9. canada drugs online says:

    online drug store https://search.gmx.com/web/result?q=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    Regards. Fantastic stuff.

  10. https://search.seznam.cz/?q="My Canadian Pharmacy - Extensive Assortment of Medications – 2022" says:

    Online viagra https://search.seznam.cz/?q=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    Seriously loads of good knowledge.

  11. canadian pharmacy viagra brand says:

    canadian discount pharmacies

    Wonderful stuff, Thanks a lot.

  12. https://swisscows.com/en/web?query="My Canadian Pharmacy - Extensive Assortment of Medications – 2022" says:

    Viagra pills https://swisscows.com/en/web?query=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    Well voiced of course. !

  13. www.dogpile.comserp?q="My Canadian Pharmacy - Extensive Assortment of Medications – 2022" says:

    Viagra 20mg https://www.dogpile.com/serp?q=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    Useful postings. Appreciate it!

  14. search.naver.comsearch.naver?where=nexearch says:

    Viagra generico

    Very good postings, With thanks!

  15. canadian pharmacy viagra says:

    no 1 canadian pharcharmy online https://search.givewater.com/serp?q=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    You expressed this well!

  16. northwest pharmacy canada says:

    canadian pharmacys https://www.bakespace.com/members/profile/Сanadian pharmaceuticals for usa sales/1541108/

    Many thanks. Very good stuff!

  17. canada pharmacies online prescriptions says:

    canadian pharmacies without an rx https://results.excite.com/serp?q=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    Kudos, Lots of forum posts.

  18. www.infospace.comserp?q="My Canadian Pharmacy - Extensive Assortment of Medications – 2022" says:

    Viagra coupon https://www.infospace.com/serp?q=“My Canadian Pharmacy – Extensive Assortment of Medications – 2022”

    Useful data. With thanks.

Leave a Reply