Heroku, Grails: Missing resources if using multiple web dynos

后端 未结 3 1854
Happy的楠姐
Happy的楠姐 2021-01-23 04:54

I have created grails application and uploaded it in heroku.
If I use \'heroku scale web=1\' everything looks OK. But if I run \'heroku scale web=2\', some

3条回答
  •  旧巷少年郎
    2021-01-23 05:09

    All assets which are in your slug (your git push essentially) should be present on all dynos. Are these assets that have been uploaded? If so, Heroku has an effectively read-only file system (http://devcenter.heroku.com/articles/dyno-isolation#ephemeral_filesystem), so you need to ensure that these assets are going to something external such as Amazons S3.

    http://grails.org/plugin/amazon-s3

提交回复
热议问题