Comments (4)
FYI contents of my Profile.options
app_name: roomballot
log_root: log
pid_root: tmp/pids
console_command: bundle exec rails console
env:
RAILS_ENV: production
RAILS_MAX_THREADS: 16
processes:
web:
log_file_name: puma.log
restart_mode: usr2
term_signal: INT
worker:
log_file_name: sidekiq.log
restart_mode: start-term
term_signal: INT
cron:
log_file_name: clockwork.log
restart_mode: start-term
term_signal: INT
from procodile.
I don't believe Procodile ever uses a file called production.log
. With --dev
enabled, it should be running in the foreground with all output going to STDOUT. Rails will use production.log
itself though and with RAILS_ENV
set to production it will go there. If you change RAILS_ENV
to development
the Rails log will go to development.log
.
from procodile.
I should also have said that the log managed by procodile is just the output of STDOUT. Rails itself doesn't log to STDOUT by default so that'll always go to files. You could change this behaviour though with something like the below in your config/application.rb
file.
config.logger = Logger.new(STDOUT)
from procodile.
Ah I see now - just starting out with Rails so thank you!
After a bit of research I actually ended up going for Logger.new('log/rails.log')
instead which seems to do the trick.
from procodile.
Related Issues (20)
- Reasons for Zombies 💀 💀 💀 Docker Container not shutting down when running Procodile? HOT 8
- Custom logger HOT 2
- Console/run commands and `--root` HOT 2
- When starting attempt to clean the pids directory before just failing to start
- Can you run this in production? HOT 5
- Puma process/server didn't stops after procofile stop (production) or ctrl-c (--dev) HOT 2
- Procodile run returns TypeError HOT 1
- Running multiple applications with different roots HOT 1
- question : how to use env variable like $HOSTNAME HOT 1
- Wiki include a typo about Configuration page HOT 1
- I cannot see any options to split processes into production & development
- Setting listen interface to localhost
- Using procodile in Kubernetes Container
- Logging from web and worker is not working
- procodile --procfile Procfile.dev start not working, Error: Invalid command '--procfile' HOT 1
- [Question] Install from Gemfile?
- .env support?
- Planning create a fork use crystal-lang (Done!) HOT 2
- Can't stop the supervisor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from procodile.