Satisfactory Mobile is a questionnaire optimized for mobile UI.
- Clone satisfactory
- Install pyenv and Python
- [pyenv] (https://github.com/yyuu/pyenv "pyenv")
pyenv local
- Install requirements
pip install -r requirements.txt
- Install MySQL Server and create database "satisfactory"
- MySQL v5.6~
CREATE DATABASE satisfactory DEFAULT CHARACTER SET utf8;
- Migrate database and load initial data
python manage.py migrate
python manage.py loaddata initial_data
- Run test
python manage.py test web
- Run server and access
python manage.py runserver
Move dir to deploy/
for fab commands.
cd deploy
Distribute source and start/restart server.
fab deploy
fab distribute
- On
fab maintenance:on
- Off
fab maintenance:off
fab server:start
fab server:restart
fab server:stop
fab server:force_quit
fab migrate
fab loaddata:SOME_FIXTURE
Salt is different from development. You should reset password.
DJANGO_SETTINGS_MODULE=satisfactory.settings.production python manage.py shell
from web.models import *
user = User.objects.get(pk=1)
user.set_password('new_password')
user.save()
This software is released under the MIT License, see LICENSE.txt.