Assetic:在AWS上转储

时间:2015-01-21 14:32:39

标签: symfony amazon-web-services amazon-ec2 elastic-beanstalk assetic

我正在尝试在AWS Beanstalk上部署我的Symfony2应用程序。除了倾销资产之外,我已经成功地完成了所有工作。 eb配置脚本运行正常,但是当我进入ec2实例时,文件不存在。这是部署日志:

2015-01-21 14:12:34,414 [DEBUG] Running command 05_update_assets
2015-01-21 14:12:34,414 [DEBUG] Generating defaults for command 05_update_assets <<<

2015-01-21 14:12:35,027 [DEBUG] No test for command 05_update_assets
2015-01-21 14:12:37,870 [INFO] Command 05_update_assets succeeded
2015-01-21 14:12:37,871 [DEBUG] Command 05_update_assets output: Dumping all dev assets.
Debug mode is off.

14:12:36 [file+] /var/app/current/app/../web/css/2f21d5e.css
14:12:36 [file+] /var/app/current/app/../web/js/b21b935.js
14:12:36 [file+] /var/app/current/app/../web/js/2031a90.js
14:12:36 [file+] /var/app/current/app/../web/css/92da39d.css
14:12:36 [file+] /var/app/current/app/../web/css/b5828a3.css
14:12:37 [file+] /var/app/current/app/../web/js/31db152.js

任何可能导致此问题的想法?

更新

我设法通过ssh和sudo运行它。任何想法为什么没有它创建文件?有人知道更好的解决方案(因为sudo将来会产生权限问题)吗?

更新2

我添加了额外的配置命令ls'es var / app / current / web并且文件存在。除了部署完成后,他们不再做...

1 个答案:

答案 0 :(得分:0)

问题已解决。 Elastic Beanstalk运行ondeck文件夹中的所有命令,如果没有错误,则将所有内容移动到当前文件夹。 Assetic正在当前文件夹中生成文件,然后被ondeck内容覆盖。