Diskussion:Grouprise
History beim Installieren von Grouprise
1 find doms/ 2 cd doms/stadt.hs-example.de/ 3 rm -rf subs/www/ subs-ssl/www/ htdocs-ssl/.htaccess 4 cd 5 git clone https://git.hack-hro.de/stadtgestalten/stadtgestalten.git 6 cd stadtgestalten/ 8 git tag 9 git checkout v2.4.3 10 cd 11 touch ~/.profile 12 chmod u+x ~/.profile 13 wget https://raw.githubusercontent.com/creationix/nvm/v0.35.3/install.sh 14 chmod u+x install.sh 15 ./install.sh 16 rm install.sh 17 nvm install 10 22 cd stadtgestalten/ 23 ls 24 make virtualenv_create 25 . build/venv/bin/activate 26 make 27 ln -s $HOME/etc/settings.py stadt/settings/local.py 28 which python 30 python manage.py migrate 33 ls -l 35 cd stadt/ 36 ls 37 cat wsgi.py 38 cp wsgi.py passenger_wsgi.py 39 cd 40 cd doms/stadt.hs-example.de/ 44 which python 45 vi .htaccess 48 rm app-ssl 49 ln -s $HOME/stadtgestalten app-ssl 51 mv app-ssl/stadt/passenger_wsgi.py app-ssl/ 52 cd 53 cd stadtgestalten/ 56 cd doms/stadt.hs-example.de/ 57 ls 65 cd htdocs-ssl/ 66 ln -s $HOME/stadtgestalten stadt
- grouprise settings file
- see https://docs.djangoproject.com/en/2.1/ref/settings/
import os import subprocess from stadt.settings.default import * from core.assets import add_javascript_reference, add_javascript_inline, add_csp_directive, add_meta
SECRET_KEY = 'XXXXXXXXXXX' ALLOWED_HOSTS = ['stadt.hs-example.de', 'localhost'] DATABASES = {
'default': { 'ENGINE': 'django.db.backends.postgresql', 'HOST': 'localhost', 'NAME': 'xyz00_stadt', 'USER': 'xyz00_stadt', 'PASSWORD': 'geheim', }
}
ADMINS = [
('Admins', 'hallo@hs-example.de'),
]
DEFAULT_FROM_EMAIL = 'noreply@hs-example.de' FROM_EMAIL_WITH_SLUG = 'noreply+{slug}@hs-example.de' ANSWERABLE_FROM_EMAIL = 'noreply@hs-example.de' DEFAULT_REPLY_TO_EMAIL = 'reply+{reply_key}@hs-example.de' STADTGESTALTEN_BOT_EMAIL = 'grouprise-bot@hs-example.de'
SERVER_EMAIL = 'grouprise <noreply@hs-example.de>' GROUPRISE_POSTMASTER_EMAIL = 'postmaster@hs-example.de'
ABOUT_GROUP_ID = 1
STADTGESTALTEN_FEEDS_IMPORTER_USER_ID = 1
GROUPRISE_FEEDS_IMPORTER_GESTALT_ID = 1
GROUPRISE_UNKNOWN_GESTALT_ID = 1
ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https'
ENTITY_SLUG_BLACKLIST = [ 'all', 'alle', 'antwort', 'crew', 'facebook', 'gbr', 'info', 'kontakt', 'mail', 'noreply', 'postmaster', 'presse', 'reply', 'stadt', 'unknown', 'webmaster', 'www']
- set debug mode to false
DEBUG = False
- increase session cookie time to 1 year
SESSION_COOKIE_AGE = 60 * 60 * 24 * 365 STADTGESTALTEN_CLAIMS = [
'your claim 1', 'your claim 2', # ...
]
.htacces: PassengerPython /home/pacs/xyz00/users/stadt/stadtgestalten/build/venv/bin/python