New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General documentation improvements #37
Comments
Thanks for trying out Fair Work and sorry for the late reply! We did not give a lot of direction on how to self-host Fair Work and we are grateful that you took the time to document the issues you ran into. I’ll try to provide some answers below:
Once the server is running, if you go to localhost:8080 (or wherever the Django server is running), you should see the same website as if you went to https://fairwork.stanford.edu/. From there, you can register your API keys and get the html script to add to your MTurk HITs. However, after doing that you will still need to set up a method of delivering emails and you will also need a script to run the three python commands on a scheduled basis (see the “Auditing HIT payment” section of the documentation”). For this reason, we actually recommend trying to set up your own Heroku server to self-host Fair Work (we currently use Fair Work). By using the SendGrid and Scheduler plugins, it is easy to set up an email server and run the python commands on a scheduled basis (and using the starter versions of these plugins is free). Hosting on Heroku also provides some more stability as opposed to running a localhost server on a computer at home. The latter is also certainly possible though. Hope this helps! Please feel free to ask any other questions if you run into anymore issues trying to self-host Fair Work. |
Thank you! The internal error is copied below, the most important line is that
We are trying to avoid Heroku, since (due to privacy concerns) we are trying to avoid all third parties. Doing some googling, it appears that there are a fair number of discussion threads on how to fix this issue. In an attempt to fix this, I added
Unfortunately I have to focus on other research and can't continue debugging. If there's an easy fix then I'll certainly implement it, but otherwise no worries! |
Hello! Firstly, thank you so much, this project is an incredible idea.
I am trying to get a self-hosted server running, but am running into issues. I'm slowly fixing them, but since these fixes aren't covered by the documentation, I'm unsure if they are intended solutions or merely hacks that will cause problems down the line.
I'm hoping for a more fleshed out documentation with perhaps even a tutorial on self hosting the server. If folks can give me unofficial advice in this thread, I'd be more than happy to write up the advice into formal documentation and open a pull request.
These are some of the issues I've run into so far.
curl localhost:8080
, so I changed the command to run topython manage.py runserver --settings=fairwork_server.local_settings lalhost:8080
localhost:8080
would connect, but caused an internal errorI'm now reading Django documentation to see what other steps I can take, but since this includes configuration that isn't covered in basic Django tutorials, I'm unsure how applicable it will be.
Furthermore, even when I have the server running, it's unclear how I will connect it to my MTurk HITs, since the fairwork website only has information on connecting using the hosted fairwork server.
Again, I sincerely appreciate the work that has gone into this project. I'm so incredibly happy that there are people out there who agree that, as researchers, we should be the ones taking the high road.
The text was updated successfully, but these errors were encountered: