Server start
This commit is contained in:
@@ -37,7 +37,7 @@ except ImportError:
|
||||
src_path = os.path.join(os.path.abspath(cwd), 'src')
|
||||
sys.path.insert(0, lib_path)
|
||||
sys.path.insert(0, src_path)
|
||||
print sys.path
|
||||
|
||||
print "Passing execution to couchpotato..."
|
||||
try:
|
||||
from couchpotato import cli
|
||||
@@ -52,5 +52,5 @@ except ImportError:
|
||||
# Running from Titanium
|
||||
raise NotImplementedError("Don't know how to do that.")
|
||||
|
||||
|
||||
cli.cmd_couchpotato()
|
||||
if __name__ == "__main__":
|
||||
cli.cmd_couchpotato()
|
||||
|
||||
@@ -4,9 +4,8 @@ import argparse
|
||||
def cmd_couchpotato():
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route("/")
|
||||
def hello():
|
||||
return "Hello World!"
|
||||
# @app.route("/")
|
||||
# def hello():
|
||||
# return "Hello World!"
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug = True)
|
||||
app.run(debug = True)
|
||||
|
||||
Reference in New Issue
Block a user