#!/usr/bin/env python

import os
from application import create_app
from flask import render_template


config_filename = 'config_' + (os.environ.get('env', 'prod')).lower()
app = create_app(config_filename)

@app.route('/')
def home():
  return render_template('home.html')

app.run()

#!/usr/bin/env python

import os
from application import create_app
from flask import render_template


config_filename = 'config_' + (os.environ.get('env', 'prod')).lower()
app = create_app(config_filename)

@app.route('/')
def home():
  return render_template('home.html')

app.run(port = int(os.environ.get('PORT', 5000)))

use port from ENV