Skip to content

Commit cac34de

Browse files
committedSep 4, 2020
[REF] Update config settings to use python3 and venv in same dir
1 parent 677960f commit cac34de

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,6 @@ pelican-plugins/
7575
pelican-sober/
7676
pelicanconf.py
7777

78+
# coineva
79+
web1200
7880
venv

‎config.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# -*- coding: utf-8 -*-
22
#
33
# Coineva Website - Github and Odoo project scraper
4-
# (C) June 2017 by 1200 Web Development <http://1200wd.com/>
4+
# (C) 2017-2020 by 1200 Web Development <http://1200wd.com/>
55

66
# Website settings
7-
WEBSITE_DIR = '/home/lennart/code/web-coineva/'
7+
WEBSITE_DIR = '/var/www/web-coineva/'
88

99
# Python virtual environment settings
10-
VIRTUALENV = '/home/lennart/.virtualenvs/web1200/'
10+
VIRTUALENV = '/var/www/web-coineva/venv/'

‎setup.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env bash
22

33
# Create virtual environment
4-
virtualenv ~/.virtualenvs/web1200
4+
python3 -m venv venv
55

66
# Install required python modules
7-
~/.virtualenvs/web1200/bin/pip install pelican markdown disqus-python
7+
venv/bin/pip3 install pelican markdown disqus-python
88

99
cp update.sh update.local.sh
1010

‎update.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
WEBSITEDIR='/var/www/web-coineva'
44

5-
source /var/www/web-coineva/.virtualenvs/web-coineva/bin/activate
5+
source /var/www/web-coineva/venv/bin/activate
66

77
cd $WEBSITEDIR
88
git pull

0 commit comments

Comments
 (0)
Please sign in to comment.