Ruby & actionmailer question

Discussion in 'Programming & Software Development' started by TehCamel, Feb 2, 2018.

  1. TehCamel

    TehCamel Member

    Joined:
    Oct 8, 2006
    Messages:
    4,108
    Location:
    Melbourne
    Hi all,

    I've inherited a Ruby On Rails application, based on Refinery CMS. It's a linux server hosted at engineyard, if that's important.
    There's no dev/test environment or whatever, just the production instance.

    I'm moving them to office365 and so need to update the actionmailer details

    I've been able to figure out that the actionmailer config data is at config/environments/production.rb

    Is this just a matter of my:
    copy production.rb ~/orig.production.rb
    vi production.rb
    edit changes
    ^ws
    restart nginx

    or is it a bit more convoluted? I somehow feel that it's not as straight forward as it seems
     
  2. waltermitty

    waltermitty Member

    Joined:
    Feb 19, 2016
    Messages:
    728
    Location:
    BRISBANE
    Nginx is probably only proxyin' requests to <insert rails server here>

    Check /etc/nginx/sites-enabled and see which port, then lsof or nc -L, get the pid, check ps -aux for said pid, see if it's rack/rails/unicorn whatever.

    Hopefully it's something sensible like unicorn and you can just do service restart unicorn, hopefully.
     
  3. OP
    OP
    TehCamel

    TehCamel Member

    Joined:
    Oct 8, 2006
    Messages:
    4,108
    Location:
    Melbourne
    thanks mate!

    could it be passenger?
     
    Last edited: Feb 6, 2018
  4. waltermitty

    waltermitty Member

    Joined:
    Feb 19, 2016
    Messages:
    728
    Location:
    BRISBANE
    Yeah could be passenger or pm2 or any supervisor really, only want to know is lsof the port the app is running on and check the pid.
     

Share This Page