2015-07-23 16:17
浏览 100


Is there any way to move config app (app/config) above the app folder? I want to deploy app folder without override config files on multiple instances of my app.

图片转代码服务由CSDN问答提供 功能建议

有没有办法将app app(app / config)移到app文件夹上? 我想部署app 文件夹没有覆盖我的应用程序的多个实例上的配置文件。

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • douliangpo0128 2015-07-24 16:41

    I am not sure if that is possible. What you can do is adding a (set of) custom config(s) to you config.php's always_load section. You can add custom paths so that it can be loaded from any file, even outside of your application.

    While this (partly) solves your problem, I might have a better solution for you:

    You can configure your application per environment. APPPATH/config/production/*.php will override your default configuration. If you don't want to version control this folder, you can add it to .gitignore. If your deployment process is smart enough, you can configure to preserve configuration files between deployments. To activate production environment, you need to set the FUEL_ENV environment variable to production.

    解决 无用
    打赏 举报

相关推荐 更多相似问题