-
Notifications
You must be signed in to change notification settings - Fork 70
Deploying Janeway on Reclaim Hosting
Andy Byers edited this page Mar 19, 2018
·
14 revisions
- Setup your account with reclaim hosting (https://reclaimhosting.com/)
- Login to your Reclaim account over SSH
- Clone Janeway using the command
git clone https://github.com/BirkbeckCTP/janeway.git
- Login to your Reclaim Cpanel and select
Setup Python App
- Create a new python app using python version 3.5 similar to below (note: I cloned janeway into a folder called jw, if you cloned it directly it would be
janeway/src
): - After you have saved your new python app, edit the WSGI file location so it looks like
/home/martindev/jw/src/core/wsgi.py
then press restart. - Copy the "command for entering virtual environment" and paste this into your terminal to activate virtualenv. If this command has worked you will see (jw/src:3.6) or similar before your username in the terminal like below:
- Move into the janeway folder
cd jw/
- Next we need to install requirements, we run
pip3 install -r requirements.txt
- Now we need to create a MySQL database for Janeway to use. Reclaim has an interface for this, create a new database (remember the name you use) and then create and add a privileged user.
- Move into the src folder
cd src/
- Copy exmample_settings to settings
cp core/example_settings.py core/settings.py
- Edit the settings file and update the database credentials using the user and database you created above:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'martindev_jw',
'USER': 'martindev_jw',
'PASSWORD': 'the+password_you-created',
'HOST': 'localhost',
'PORT': '3306',
'OPTIONS': {'init_command': 'SET default_storage_engine=INNODB'},
}
}
Wiki has moved to read the docs.