aboutsummaryrefslogtreecommitdiff
path: root/runserver.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel+bitbucket@gmail.com>2014-06-09 19:05:32 +0200
committerCédric Bonhomme <kimble.mandel+bitbucket@gmail.com>2014-06-09 19:05:32 +0200
commit1b73a3a4a73f231f6c1c2a3258e561b1301ca6af (patch)
treeea21bacea92a0a267f8286eb12f2d81cefa1a3c4 /runserver.py
parentA problem with urllib.quote() has been detected with the url: http://standblo... (diff)
parentfixing parsing for already quoted url as well (diff)
downloadnewspipe-1b73a3a4a73f231f6c1c2a3258e561b1301ca6af.tar.gz
newspipe-1b73a3a4a73f231f6c1c2a3258e561b1301ca6af.tar.bz2
newspipe-1b73a3a4a73f231f6c1c2a3258e561b1301ca6af.zip
Merged in jaesivsm/pyaggr3g470r (pull request #2)
making pyagregator runnable by apache
Diffstat (limited to 'runserver.py')
-rwxr-xr-xrunserver.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/runserver.py b/runserver.py
index 92c02609..b4e138f3 100755
--- a/runserver.py
+++ b/runserver.py
@@ -19,8 +19,10 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import conf
-from pyaggr3g470r import app
+from bootstrap import conf
+from pyaggr3g470r import app as application
-app.run(host=conf.WEBSERVER_HOST, port=conf.WEBSERVER_PORT,
- debug=conf.WEBSERVER_DEBUG)
+if __name__ == '__main__':
+ application.run(host=conf.WEBSERVER_HOST,
+ port=conf.WEBSERVER_PORT,
+ debug=conf.WEBSERVER_DEBUG)
bgstack15