rename server to api

This commit is contained in:
Jonatan Nilsson 2017-11-05 11:52:36 +00:00
parent 39caf36b07
commit 1f064d1f4e
14 changed files with 28 additions and 1 deletions

27
.circleci/config.yml Normal file
View file

@ -0,0 +1,27 @@
version: 2
jobs:
build:
docker:
- image: docker:17.05.0-ce-git
working_directory: ~/caspar-sup
steps:
- checkout
- setup_remote_docker
- run:
name: Build docker image
command: docker build -t nfpis/caspar-sup:build_${CIRCLE_BUILD_NUM} -t nfpis/caspar-sup:${CIRCLE_SHA1} -t nfpis/caspar-sup:latest .
- run:
name: Push to docker
command: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push nfpis/caspar-sup
- deploy:
name: Deploy to production
command: |
echo Not implemented
workflows:
version: 2
build_deploy:
jobs:
- build:
context: org-global

View file

@ -31,7 +31,7 @@ log.info('Running database integrity scan.')
let setup = require('./script/setup')
setup().then(() => {
require('./server')
require('./api')
}).catch((error) => {
log.error(error, 'Error while preparing database')
process.exit(1)