Skip to content

Commit

Permalink
Update and rename passenger_wsgi.py to main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswilson1982 authored Sep 10, 2024
1 parent b17d3ab commit a5667bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 25 deletions.
12 changes: 12 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import os
import sys
import bottle
from bottle import route, run, template
import blog_uploader # Custom routes

app = Bottle()

if os.environ.get('APP_LOCATION') == 'heroku':
app.run(host="0.0.0.0", port=int(os.environ.get("PORT", 5000)))
else:
app.run(host='localhost', port=8080, debug=True)
25 changes: 0 additions & 25 deletions passenger_wsgi.py

This file was deleted.

0 comments on commit a5667bf

Please sign in to comment.