Skip to content

Deploying Janeway on Reclaim Hosting

Andy Byers edited this page Mar 19, 2018 · 14 revisions
  1. Setup your account with reclaim hosting (https://reclaimhosting.com/)
  2. Login to your Reclaim account over SSH
  3. Clone Janeway using the command git clone https://github.com/BirkbeckCTP/janeway.git
  4. Login to your Reclaim Cpanel and select Setup Python App
  5. 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):
  6. 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.
  7. 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:
  8. Move into the janeway folder cd jw/
  9. Next we need to install requirements, we run pip3 install -r requirements.txt
  10. 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.
  11. Move into the src folder cd src/
  12. Copy exmample_settings to settings cp core/example_settings.py core/settings.py
  13. 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.

Clone this wiki locally