The files comprise a cache that needs to be there for the next user,
even if that user is the one who's unfortunate enough to "wake up" the app.
W
On 3/8/11 9:54 AM, Miles Smith wrote:
I always assume my cronies is running brand new instances.
Why not just check if you files are there, if not , create them.
On Mar 8, 2011 3:39 AM, "Wes Gamble" <[email protected]
<mailto:[email protected]>> wrote:
> Given a Heroku app.:
>
> If I have a cron job that populates a cache directory in RAILS_ROOT/tmp
> once a day, and all of my dynos go idle, when they "wake up", will the
> "tmp" directory be empty or will it still contain what my cron job
wrote?
>
> (I think the deeper question here is whether a dyno "wakes up" in some
> pre-existing state, or whether a dyno. is simply reconstituted from the
> slug state at deploy-time? I apologize if my phrasing is
> awkward/imprecise.)
>
> If "tmp" will be empty, do we have any way to hook into the "dyno
> wake-up process" in order to do some filesystem initialization in /tmp?
>
> Thanks,
> Wes
>
> --
> You received this message because you are subscribed to the Google
Groups "Heroku" group.
> To post to this group, send email to [email protected]
<mailto:[email protected]>.
> To unsubscribe from this group, send email to
[email protected]
<mailto:heroku%[email protected]>.
> For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.
>
--
You received this message because you are subscribed to the Google
Groups "Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.