Commits

Frank Becker committed 3653731

due to spammers new users are not allowed to submitt anymore. added runit sv file

Comments (0)

Files changed (2)

src/pentasubmitter/deploy/runit/run

+#!/bin/sh
+
+PYTHON_BIN=/srv/virtualenvs/pentasubmitter/bin/python
+PENTASUBMITTER_PATH=/srv/var/lib/django/pentasubmitter/pentasubmitter
+PYTHON_PROJECT_PATH=/srv/var/lib/django/pentasubmitter
+PID=/var/run/pentasubmitter.pid  
+VIRTUALENVACTIVATE=/srv/virtualenvs/pentasubmitter/bin/activate
+LOG_FILE=/var/log/pentasubmitter.log
+
+if [ -f $PID ]
+    then rm $PID
+fi
+
+export PYTHONPATH="$PYTHON_PROJECT_PATH:$PYTHONPATH"
+cd $PENTASUBMITTER_PATH
+#source $VIRTUALENVACTIVATE
+exec $PYTHON_BIN manage.py celeryd --pid=$PID
+

src/submitter/models.py

     submitter.user = user
     submitter.save()
 
-user_activated.connect(make_user_submitter)
+#user_activated.connect(make_user_submitter)
 
 try:
     tagging.register(NewsEntry)