#!/usr/bin/python
import os

if os.environ.get('OPENSHIFT_PYTHON_DIR'):      # on Openshift
    virtenv = os.environ.get('OPENSHIFT_PYTHON_DIR') + '/virtenv/'
    virtualenv = os.path.join(virtenv, 'bin/activate_this.py')
    try:
        execfile(virtualenv, dict(__file__=virtualenv))
    except IOError:
        pass
#
# IMPORTANT: Put any additional includes below this line.  If placed above this
# line, it's possible required libraries won't be in your searchable path
#

from rtrss.webapp import app as application

#
# Below for testing only
#
if __name__ == '__main__':
    application.run('0.0.0.0', 8080, debug=True)

#!/usr/bin/python
import os
from rtrss import config


if os.environ.get('OPENSHIFT_PYTHON_DIR'):      # on Openshift
    virtenv = os.environ.get('OPENSHIFT_PYTHON_DIR') + '/virtenv/'
    virtualenv = os.path.join(virtenv, 'bin/activate_this.py')
    try:
        execfile(virtualenv, dict(__file__=virtualenv))
    except IOError:
        pass
#
# IMPORTANT: Put any additional includes below this line.  If placed above this
# line, it's possible required libraries won't be in your searchable path
#

from rtrss.webapp import app as application

#
# Below for testing only
#
if __name__ == '__main__':
    application.run(config.IP, config.PORT, debug=True)

Read IP and PORT from configuration
Read IP and PORT from configuration
