This commit is contained in:
zzpwelkin
2013-12-27 14:09:17 +08:00
parent 9533d9acf3
commit fc717dd27a
10 changed files with 30 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
mongodb
+2
View File
@@ -0,0 +1,2 @@
<%= ENV['OPENSHIFT_MONGODB_DB_URL'] %>
+1
View File
@@ -0,0 +1 @@
<%= ENV['OPENSHIFT_MONGODB_DB_URL'] %>
@@ -0,0 +1 @@
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
# This deploy hook gets executed after dependencies are resolved and the
# build hook has been run but before the application has been started back
# up again. This script gets executed directly, so it could be python, php,
# ruby, etc.
@@ -0,0 +1 @@
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
source $OPENSHIFT_HOMEDIR/python/virtenv/bin/activate
export PYTHONPATH=`echo $OPENSHIFT_REPO_DIR`:$PYTHONPATH
@@ -0,0 +1 @@
View File
+13
View File
@@ -0,0 +1,13 @@
import celery
app = celery.Celery()
@app.task
def addtest(x, y):
return x + y
@app.task
def run_spiders(name, **kwargs):
"""
@param name: spider name
"""
pass