Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API logging on Heroku fails #112

Open
fjenett opened this issue Mar 30, 2015 · 2 comments
Open

API logging on Heroku fails #112

fjenett opened this issue Mar 30, 2015 · 2 comments

Comments

@fjenett
Copy link
Member

fjenett commented Mar 30, 2015

Not sure if this is just a config problem …

$ heroku run rake db:create_super_admin[prod] -a piecemaker2-api-public
Running `rake db:create_super_admin[prod]` attached to terminal... up, run.7825
rake aborted!
Errno::ENOENT: No such file or directory - /app/log/api.log
/app/config/environment.rb:8:in `new'
/app/config/environment.rb:8:in `<top (required)>'
/app/Rakefile:130:in `require'
/app/Rakefile:130:in `block in <top (required)>'
/app/Rakefile:137:in `block (2 levels) in <top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
@dasantonym
Copy link
Member

afaik heroku does not provide a 100% writeable filesystem. you'd need to write to one of the designated locations:

https://devcenter.heroku.com/articles/read-only-filesystem
https://devcenter.heroku.com/articles/dynos#ephemeral-filesystem

@fjenett
Copy link
Member Author

fjenett commented Mar 30, 2015

Yes, we already have a check in the environment.yml but after initialising the logger … duh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants