Closed basiszwo closed 6 years ago
@basiszwo on systemd distributions, the only way to see your logs are though the journalctl
command line. You could choose to manually configure your Rails app to log to a specific log file, but by default everything gets logged to STDOUT (though the inclusion of the rails_12factor plugin), and as such is managed by systemd.
The changes in master relate to the fact that the logs
command is now smarter, in that it can apply journald
flags to filter on specific processes (e.g. my-app logs web
).
Regarding your last issue, I believe you are running pkgr as root? Try with a non-privileged user if you can
I am using the latest version of pkgr to build my rails 5.1 application on an Ubuntu 17.10 machine.
Everything works fine except that there are no application logs. There are none in the log directory of the application, nor are there any in
/var/log/APP-NAME
.Other log files I create for services I have in my application are there but not the rails log.
I can view the log by using
journalctl
but it would be nice to have it in a file as I want to send it to some logging service.According to @crohr the latest master includes a fix for this. I did install with
Unfortunately building my app then doesn't work any more.
I receive the following error:
My questions are:
Thank you!