Welcome to Centmin Mod Community
Become a Member

Phusion Passenger Nginx Module for Python & Ruby Deployments

Discussion in 'Add Ons' started by eva2000, Jun 12, 2015.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    55,424
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,839
    Local Time:
    8:05 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  2. saigoncrypto

    saigoncrypto New Member

    23
    2
    3
    Nov 14, 2017
    Ratings:
    +2
    Local Time:
    3:05 PM
    thanks! the issue was low memory. I resized my DO droplet to more memory and then downsized it again
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,424
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,839
    Local Time:
    8:05 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    haha nice DigitalOcean FTW :)
     
  4. saigoncrypto

    saigoncrypto New Member

    23
    2
    3
    Nov 14, 2017
    Ratings:
    +2
    Local Time:
    3:05 PM
    i am running into some problems running passenger with django.
    It is running on port 3000, but it doesn't seem to be displaying the page.

    when i run in the server:
    Code:
    curl http://0.0.0.0:3000/
    it will pull the page, but not if it goes through nginx... is there a setting i have to toggle in the nginx conf to get it to show the page?

    edit:
    I had to add:
    Code:
    proxy_pass http://127.0.0.1:3000;
     
    Last edited: May 11, 2020
  5. saigoncrypto

    saigoncrypto New Member

    23
    2
    3
    Nov 14, 2017
    Ratings:
    +2
    Local Time:
    3:05 PM
    is there a way to get passenger to use python 3.6 ? I have added in passenger.conf:
    Code:
    passenger_python /usr/bin/python3.6;
    
    but it doesn't seem to be recognizing it.
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,424
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,839
    Local Time:
    8:05 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Never used Phusion Passenger or Django myself but some clues for nginx reverse proxy setup at Putting Passenger Standalone behind an Nginx or Apache reverse proxy - Passenger Library

    For Python 3.6 you can install Python 3.6 side by side with Python 2.7 via Centmin Mod 123.09beta01's addons/python36_install.sh and you'd have pip3.6 and python3.6 access to 3.6 version and then use Python virtualenv for contained Python 3.6 environment for your app see Sysadmin - CentOS 7 Python 2.7 will reach the end of its life on January 1st, 2020