Compare commits
3 Commits
b64db4092a
...
e1df8d201c
Author | SHA1 | Date |
---|---|---|
|
e1df8d201c | |
|
ed39f974dc | |
|
190c63c594 |
|
@ -0,0 +1 @@
|
|||
/dist/
|
|
@ -0,0 +1,16 @@
|
|||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
PUBLISH_HOST = 'web0.pyrocufflink.blue'
|
||||
PUBLISH_USER = 'webapp.dchwww'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Publish') {
|
||||
steps {
|
||||
sh '. ci/publish.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
rsync -rti . ${PUBLISH_USER}@${PUBLISH_HOST}: \
|
||||
--exclude dist/ --exclude .git
|
||||
rsync -rti dist/ ${PUBLISH_USER}@${PUBLISH_HOST}:wheelhouse \
|
||||
--include '*.whl' --exclude '**'
|
||||
ssh ${PUBLISH_USER}@${PUBLISH_HOST} \
|
||||
venv/bin/pip install --no-index -f wheelhouse -r requirements.txt
|
|
@ -0,0 +1,3 @@
|
|||
Milla>=0.3
|
||||
Jinja2>=2.9
|
||||
PyYAML>=3.10
|
4
site.py
4
site.py
|
@ -1,5 +1,6 @@
|
|||
from milla.dispatch import routing
|
||||
from webob import acceptparse
|
||||
import codecs
|
||||
import jinja2
|
||||
import milla
|
||||
import os
|
||||
|
@ -24,7 +25,8 @@ env = jinja2.Environment(
|
|||
)
|
||||
|
||||
|
||||
with open(os.path.join(os.path.dirname(__file__), 'songquotes.yml')) as f:
|
||||
songquotes = os.path.join(os.path.dirname(__file__), 'songquotes.yml')
|
||||
with codecs.open(songquotes, 'r', encoding='utf-8') as f:
|
||||
songquotes = yaml.load(f, Loader=YamlLoader)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue