-
Notifications
You must be signed in to change notification settings - Fork 28
Installation on Mac and Linux
Harley Hicks edited this page Aug 4, 2017
·
10 revisions
In the future, much of the instructions below will be automated so that setup is quick and painless.
This has been tested on Mac OSX 10.11 and Ubuntu 14.04.
It is recommended to run Tenma in a Python Virtual Environment.
- Install Python 3.5 or greater: https://www.python.org/
- Run the following commands in Terminal:
- Install Virtual Environment:
pip install virtualenv - Change to the directory you want install Tenma. For example, if you want to install this in your Documents folder:
cd ~/Documents/ - Create your virtual environment:
virtualenv -p python3 venv - Activate virtual environment:
source venv/bin/activate
- Install Virtual Environment:
- Download the repository, unarchive it, and rename it to
tenmaserver. - Copy
tenmaserverto thevenvdirectory. - Run the following commands in Terminal:
- Change into the tenmaserver directory:
cd ~/Documents/venv/tenmaserver - Install dependencies:
pip install -r requirements.txt - Generate a secret key (for Django security):
python manage.py generatesecretkey - Create your database:
python manage.py migrate - Create your admin user:
python manage.py createsuperuser
- Change into the tenmaserver directory:
- Open a second terminal window and run the following commands:
- Change into the
venvdirectory:cd ~/Documents/venv - Activate virtual environment:
source venv/bin/activate - Change into the
tenmaserverdirectory:cd ~/Documents/venv/tenmaserver - Start up Celery for task management:
celery -A tenma worker --loglevel=info - Keep Celery running!
- Change into the
- Start your local server:
python manage.py runserver [YOUR IP ADDRESS]:8000- For example:
python manage.py runserver 192.168.1.30:8000
- For example:
- In your browser, go to
http://[YOUR IP ADDRESS]:8000- For example:
http://192.168.1.30:8000
- For example:
Next, you'll want to import your comics.