Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Created fcgi spawn script, updated column sizes

  • Loading branch information...
commit e496110abfad50a728892a1a446e00bc121202b9 1 parent be8bdfe
@sharms authored
Showing with 17 additions and 6 deletions.
  1. +13 −0 homepage.fcgi
  2. +2 −4 homepage.py
  3. +2 −2 templates/index.html
View
13 homepage.fcgi
@@ -0,0 +1,13 @@
+#!/www/HomePage/bin/python
+import os
+import sys
+os.environ.setdefault('PATH', '/bin:/usr/bin')
+os.environ['PATH'] = '/www/HomePage/bin:' + os.environ['PATH']
+os.environ['VIRTUAL_ENV'] = '/www/HomePage'
+os.chdir('/www/HomePage')
+
+sys.path.insert(0, "/www/HomePage")
+
+from flup.server.fcgi import WSGIServer
+from homepage import app
+WSGIServer(app, bindAddress='/tmp/homepage.sock').run()
View
6 homepage.py
@@ -19,10 +19,8 @@
DATABASE = '/var/tmp/sharms-homepage-cache.sqlite'
-DEBUG = True
+DEBUG = False
SECRET_KEY = 'ksd241241kndkndk1ndk123442ievjfiee'
-HOST = '0.0.0.0'
-port = '443'
app = Flask(__name__)
print app
@@ -159,5 +157,5 @@ def index():
return render_template('index.html', results = results)
if __name__ == '__main__':
- app.run(host='0.0.0.0', port=443)
+ app.run()
View
4 templates/index.html
@@ -14,7 +14,7 @@
<h1>Steven Harms</h1>
</div>
<div class="clear"></div>
- <div class="grid_8" id="rss-updates">
+ <div class="grid_9" id="rss-updates">
<h2>Activities</h2>
<ul>
{% for result in results %}
@@ -22,7 +22,7 @@
{% endfor %}
</ul>
</div>
- <div class="grid_4" id="about">
+ <div class="grid_3" id="about">
<div>
<h2>About</h2>
<p>Steven Harms (sharms) is a open source hacker, system administrator and programmer.</p>
Please sign in to comment.
Something went wrong with that request. Please try again.