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:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$STAGING_SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- 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'
tags:
- 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
## 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
......
{
"name": "flashcards",
"scripts": {
"start": "meteor --settings settings-development.json"
}
}
......@@ -2,10 +2,10 @@
"public": {
"rooturl": "http://localhost:3000",
"cas": {
"loginUrl": "https://cas.thm.de/cas/login",
"serviceParam": "service",
"popupWidth": 810,
"popupHeight": 610
"loginUrl": "https://cas.thm.de/cas/login",
"serviceParam": "service",
"popupWidth": 810,
"popupHeight": 610
}
},
"facebook": {
......@@ -21,7 +21,7 @@
"secret": "2-P5Vy6VI0eOrKIlOCZZq8cR"
},
"cas": {
"baseUrl": "https://cas.thm.de/cas",
"autoClose": true
"baseUrl": "https://cas.thm.de/cas",
"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