import os

from flask import Flask
from flask.ext import restful
from resources.hello_world import HelloWorld
from resources.sms import SMS
from resources.users import Users

app = Flask(__name__)
api = restful.Api(app)

api.add_resource(HelloWorld, '/')
api.add_resource(Users, '/users')
api.add_resource(SMS, '/sms')

if __name__ == '__main__':
    port= int(os.environ.get("PORT", 5000))
    app.run(port=port)

import os

from flask import Flask
from flask.ext import restful
from resources.hello_world import HelloWorld
from resources.sms import SMS
from resources.users import Users

app = Flask(__name__)
api = restful.Api(app)

api.add_resource(HelloWorld, '/')
api.add_resource(Users, '/users')
api.add_resource(SMS, '/sms')

if __name__ == '__main__':
    port = int(os.environ.get("PORT", 5000))
    app.run(host='0.0.0.0', port=port)

Change port