disable gitlab-ci / we will use ssh/rsync instead.
pyenv employed. (no venv)
This commit is contained in:
parent
1de2117337
commit
2226d8c89c
6 changed files with 12 additions and 17 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -4,3 +4,4 @@ venv/
|
|||
__pycache__/
|
||||
.#*
|
||||
.DS_Store
|
||||
.python-version
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -1 +0,0 @@
|
|||
14d418050cbfc572a0986737fddae74e979ee4b4ac2c6c7abfcb402fb1c832c0
|
||||
9
init.sh
Executable file
9
init.sh
Executable file
|
|
@ -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
|
||||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue