Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.8 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.8 KB

Oice-deployment README

Intro

Oice project consists of the open source repos under GPLv3 licence...

... and 2 proprietary repos avalable for development use only

Please check the respective licence files for terms and conditions

Prerequisite

Setup

Remeber to init all submodules first

  • git submodule update --init --recursive

General development (with prebuild oice-web image)

  • docker-compose build
  • docker-compose up -d

The SQL dump in database will be imported the first time you run the mysql container

Web development (with webpack hotreload + mount volume)

For web development quick start, rename oice-web/common/constants/key.example.js to key.js, then

  • docker-compose -f docker-compose.oice-web-dev.yml build
  • docker-compose -f docker-compose.oice-web-dev.yml up

it will take some time for webpack to build the oice-web development build

DB Migration commands

We use Alembic for oice-server database version control

In case of a database upgrade needed, just run

  • docker-compose exec oice-server alembic -c example.ini upgrade head

while the oice-server and mysql container is running

For more detailed guide of creating migrations and downgrading db version, please refer to alembic documentation.