当我尝试使用Capifony部署我的Symfony2应用程序时出现以下错误:
在 “/path/cap/myapp/releases/20121227024938/app/config/parameters.ini” 文件无效。
这就是parameters.ini对我来说的样子:
; These parameters can be imported into other config files
; by enclosing the key with % (like %database_user%)
; Comments start with ';', as in php.ini
[parameters]
database_driver = pdo_mysql
database_host = localhost
database_name = symfony
database_user = root
mailer_transport = smtp
mailer_host = localhost
locale = en
secret = ThisTokenIsNotSoSecretChangeIt
我可以直到最近部署。仅从示例中复制parameters.ini文件。可能是什么交易?
答案 0 :(得分:1)
您必须更改“秘密”令牌。将“ThisTokenIsNotSoSecretChangeIt”更改为秘密密码短语或字符串。
答案 1 :(得分:0)
由于Symfony 2.1使用的是parameters.yml
而不是parameters.ini
,所以我决定只吹走parameters.ini
以及对它的任何引用。这解决了问题。