diff --git a/.gitignore b/.gitignore index 1e206dc..c301fe2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ venv/ __pycache__/ .#* .DS_Store +.python-version diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 8bda49d..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,14 +0,0 @@ -build: - script: - - whoami - - virtualenv venv - - source venv/bin/activate - - pip install -r requirements.txt - - patch venv/lib/python3.5/site-packages/pelican/readers.py -i patch/pelican_readers.patch - - make publish - - rm -rf /var/www/webapp_doohoyi/nosignal.hopto.org_site/ci/losttr - - cp -r public /var/www/webapp_doohoyi/nosignal.hopto.org_site/ci/losttr - - deactivate - artifacts: - paths: - - public diff --git a/.sparkleshare b/.sparkleshare deleted file mode 100644 index fa9e4bd..0000000 --- a/.sparkleshare +++ /dev/null @@ -1 +0,0 @@ -14d418050cbfc572a0986737fddae74e979ee4b4ac2c6c7abfcb402fb1c832c0 \ No newline at end of file diff --git a/init.sh b/init.sh new file mode 100755 index 0000000..81d2eb3 --- /dev/null +++ b/init.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +#install dep. +pip3 install -r requirements.txt + +#here we assume an env. variable describing venv location: $VIRTUAL_ENV (set by pyenv) +#here we assume version 3.8 -> if it is not so, please update. +#here we are expecting to patch pelican 4.2.0, if not so, check out manually! +patch $VIRTUAL_ENV/lib/python3.8/site-packages/pelican/readers.py -i patch/pelican_readers.patch diff --git a/pelicanconf.py b/pelicanconf.py index b7c6e86..f9af146 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -4,7 +4,7 @@ from __future__ import unicode_literals AUTHOR = 'D' SITENAME = 'lost|traIn' -SITEURL = 'https://nosignal.hopto.org/site/ci/losttr' +SITEURL = 'https://nosignal.hopto.org/site/losttrain' #SITEURL = 'localhost:8000' PATH = 'content' diff --git a/publishconf.py b/publishconf.py index ecb938a..2576e07 100644 --- a/publishconf.py +++ b/publishconf.py @@ -10,7 +10,7 @@ import sys sys.path.append(os.curdir) from pelicanconf import * -SITEURL = '/site/ci/losttr' +SITEURL = '/site/losttrain' #SITEURL = '/' RELATIVE_URLS = False