Commit 139196a0 authored by Marius Trautrims's avatar Marius Trautrims

Enable CI for production

parent 0efa6f16
deploy-staging: before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
staging:
stage: test
script: script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$STAGING_SSH_PRIVATE_KEY") - ssh-add <(echo "$STAGING_SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- ssh $STAGING_USER@$STAGING_HOST 'cd flashcards/; git fetch --all; git reset --hard origin/master' - ssh $STAGING_USER@$STAGING_HOST 'cd flashcards/; git fetch --all; git reset --hard origin/master'
tags: tags:
- nodejs - nodejs
production:
stage: deploy
script:
- ssh-add <(echo "$PRODUCTION_SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- ssh $PRODUCTION_USER@$PRODUCTION_HOST 'cd flashcards/; git fetch --all; git reset --hard origin/master'
only:
- master
tags:
- nodejs
...@@ -4,7 +4,7 @@ ARSnova Flashcards is a digital recreation of a classic learning tool. The servi ...@@ -4,7 +4,7 @@ ARSnova Flashcards is a digital recreation of a classic learning tool. The servi
## Getting Started ## Getting Started
To start ARSnova Flashcards on localhost use `npm start` inside the repository. You can then access ARSnova Flashcards from your host machine by opening http://localhost:3000. To start ARSnova Flashcards on localhost use `meteor --settings settings-development.json` inside the repository. You can then access ARSnova Flashcards from your host machine by opening http://localhost:3000.
## CI Pipeline ## CI Pipeline
......
{
"name": "flashcards",
"scripts": {
"start": "meteor --settings settings-development.json"
}
}
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
"public": { "public": {
"rooturl": "http://localhost:3000", "rooturl": "http://localhost:3000",
"cas": { "cas": {
"loginUrl": "https://cas.thm.de/cas/login", "loginUrl": "https://cas.thm.de/cas/login",
"serviceParam": "service", "serviceParam": "service",
"popupWidth": 810, "popupWidth": 810,
"popupHeight": 610 "popupHeight": 610
} }
}, },
"facebook": { "facebook": {
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"secret": "2-P5Vy6VI0eOrKIlOCZZq8cR" "secret": "2-P5Vy6VI0eOrKIlOCZZq8cR"
}, },
"cas": { "cas": {
"baseUrl": "https://cas.thm.de/cas", "baseUrl": "https://cas.thm.de/cas",
"autoClose": true "autoClose": true
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment