Git Product home page Git Product logo

Comments (4)

CHTJonas avatar CHTJonas commented on May 31, 2024

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.

adamcooke avatar adamcooke commented on May 31, 2024

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.

adamcooke avatar adamcooke commented on May 31, 2024

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.

CHTJonas avatar CHTJonas commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.