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

Problem with Heroku Push #8

Open
ZavenArra opened this issue Jul 19, 2014 · 7 comments
Open

Problem with Heroku Push #8

ZavenArra opened this issue Jul 19, 2014 · 7 comments

Comments

@ZavenArra
Copy link

When I push to Heroku, I get the error
Errno::ENOENT: No such file or directory - /tmp/build_1a3e7f9e-d26a-4049-83e3-565c75bab789/log/stack.log

This is my (currently one and only) multilogger log. Ideas as to why this might be ? I've seen mention of other gems having similar errors with heroku push, so it's gotta be this gem.

@ZavenArra
Copy link
Author

Didn't an error the first time I pushed, did the second time. Taking the multi logger line out of my initializer got me past the problem. If you can give me a few hints I'd be happy to patch this one.

@lulalala
Copy link
Owner

Hi there. I have never used Heroku, so I can only assume this is because Heroku tries to prevent apps from creating files (because it want to be a static system). In heroku, how do you view your log files? Do you SSH in to the machine and then CD into the log directory and view the log file?

@ZavenArra
Copy link
Author

You view the log files using the heroku client, as you don't have direct access to the filesystem. A similar problem in another gem recommended adding the file in question to version control (one deploys to heroku using git) but this also did not fix the issue..

@lulalala
Copy link
Owner

So I see that you type heroku logs to access logs. What command do you expect to use access custom logs?

@ZavenArra
Copy link
Author

honestly haven't gotten that far with it yet, was going to loo at redirecting multi logger to stdout for heroku. the main thing was just being able to push to heroku without disabling the log i had set up, but you may be on the right rack - how could i simply redirect multi logger to stdout for a certain environment ?

@lulalala
Copy link
Owner

I guess you can wait for #7 pull request. It will add a way to change logging file path. Then I can add one extra conditional check on top of that, so passing :stdout symbol would actually mean redirecting t to STDOUT

@ZavenArra
Copy link
Author

Thanks. I think that what would make the most sense would to be log to STDOUT and also be able to prepend the logfile name to the log output for heroku. I have started looking into how this would be accomplished, not too familiar with the ActiveSupport codebase though.

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