Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Roman Prykhodchenko
@romcheg
basically there's no python script that you run in order to start Ralph
currently there are a few manual steps you have to follow in order to set ralph up at your bare host
do you have a mysql server running?
Vladislav Solovei
@vladsol
@romcheg Yes.
Roman Prykhodchenko
@romcheg
then ensure you are in the Ralph directory and run pip3 install -e .
Vladislav Solovei
@vladsol
@romcheg Done. Now, i have "/opt/ralph/bin/ralph" )
@romcheg Do i need to set the "MYSQL_*" environment variables ?
Roman Prykhodchenko
@romcheg
now you have two options -- you either create a db called ralph_ng and a user called the same and having the same password or you create you custom db and user and change Ralph's settings
Vladislav Solovei
@vladsol
@romcheg ralph migrate ?
Roman Prykhodchenko
@romcheg
yup
Vladislav Solovei
@vladsol
@romcheg Done)
Roman Prykhodchenko
@romcheg
cool
now you can test if it works bu running ralph runserver 8000 - you can choose another port
for sure you need to create a user first :)
ralph createsuperuser
Vladislav Solovei
@vladsol
@romcheg :( Server Error (500)
Roman Prykhodchenko
@romcheg
could you please post what you have in logs
Vladislav Solovei
@vladsol
I can't find any *.log files :)
Roman Prykhodchenko
@romcheg
ah, sure, you don't have too much output
export RALPH_DEBUG=1
and then run it again
Vladislav Solovei
@vladsol
@romcheg with RALPH_DEBUG=1 there is no HTTP 500
@romcheg But, i see some 404 errors while requesting some js and css files
[20/Feb/2018 13:55:53] "GET /static/css/ralph.css HTTP/1.1" 404 1657
Roman Prykhodchenko
@romcheg
Right
That's expected for now
Frontend, i. e., JS and CSS stuff has to be built now. Just run node_modules/.bin/gulp
I know that sounds like a lot of steps -- we are working on making a simple package for it
Vladislav Solovei
@vladsol
@romcheg Wow :) It's works!
@romcheg Thank you! :)
Roman Prykhodchenko
@romcheg
awesome
now you're probably interested to have that running as a service, aren't you?
Vladislav Solovei
@vladsol
@romcheg Yes)
Roman Prykhodchenko
@romcheg
Do you know how to run gunicorn?
it is already installed, since you've performed make install
the configuration file for gunicorn is located in contrib/gunicorn.py.ini
Vladislav Solovei
@vladsol
@romcheg I have configured nginx + supervisord + gunicorn)
But there are problems with the paths to some js
@romcheg on example, requested domain.com/static/admin/js/jquery.js, but theres is no "admin" directory in "src/static" .
Roman Prykhodchenko
@romcheg
@vladsol basically you don't need nginx in this bundle
ralph uses whitenoise to serve static files
Erik Smedinga
@ErikSmedinga
How can I change the password of a user?
Roman Prykhodchenko
@romcheg
@vladsol and I suppose it's not going to be a heavily loaded by external users, so whitenoise will work from the box
so go directly to gunicorn and check if you get static files
Arkadiusz Adamski
@ar4s
Vladislav Solovei
@vladsol
@romcheg Unfortunately, no :(
@romcheg for all of "/static/" i getting 404
Arkadiusz Adamski
@ar4s
@vladsol please run ralph collectstatic --noinput
Vladislav Solovei
@vladsol
2620 static files copied to '/opt/ralph/ralph/src/ralph/var/static'
Roman Prykhodchenko
@romcheg
looks good
@ar4s ^