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
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 ^
Arkadiusz Adamski
@ar4s
+1
Vladislav Solovei
@vladsol
@romcheg But... Nothing changeds.
Arkadiusz Adamski
@ar4s
@vladsol you run gunicorn behind nginx?
Vladislav Solovei
@vladsol
No. only gunicorn. nginx is stopped.
Maybe, i need to specify static files location for unicorn?
Somehow...)
Roman Prykhodchenko
@romcheg
@vladsol well, we have examined the code with @ar4s... and looks like we aparently forgot to merge whitenoise... somehow...
Vladislav Solovei
@vladsol
Oops :)
Roman Prykhodchenko
@romcheg
so you can take the configuration file for nginx from contrib/ and adapt it for your needs
Vladislav Solovei
@vladsol
So, at this moment, i can use nginx )
Roman Prykhodchenko
@romcheg
right
sorry for the confusion