Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

dotcloudify

  • Loading branch information...
commit 492d2974e7ac4bc3508767bb31dbfb9c42662818 1 parent c159b88
@mapleoin authored
View
4 dotcloud.yml
@@ -0,0 +1,4 @@
+www:
+ type: python
+db:
+ type: postgresql
View
2  popcorn-client
@@ -34,7 +34,7 @@ import socket
import sys
import time
-POST_SERVER = 'localhost:5000'
+POST_SERVER = 'popcorn.mapleoin.eu'
POST_URI = '/'
VERSION = '0.1'
HWUUID_FILE = '/etc/smolt/hw-uuid'
View
8 popcorn/configs.py
@@ -1,2 +1,8 @@
-DB_ENGINE = 'postgresql://popcorn:popcorn@localhost/popcorn'
+import json
+
+with open('/home/dotcloud/environment.json', 'r') as f:
+ conf = json.load(f)
+DB_ENGINE = 'postgresql://popcorn:popcorn@%(host)s:%(port)s/popcorn' % {
+ 'host': conf['DOTCLOUD_DB_SQL_HOST'],
+ 'port': conf['DOTCLOUD_DB_SQL_PORT']}
SUBMISSION_INTERVAL = 30
View
2  popcorn/templates/layout.html
@@ -1,7 +1,7 @@
<!doctype html>
<head>
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}">
- <link rel=icon type=image/ico href="/static/favicon.ico">
+ <link rel="shortcut icon" href="/static/favicon.ico">
<title>Popcorn eats you!</title>
</head>
<div id="box">
View
2  postinstall
@@ -0,0 +1,2 @@
+#!/bin/sh
+ln -s popcorn/static static
View
3  wsgi.py
@@ -0,0 +1,3 @@
+# this file is needed by dotcloud
+from popcorn import app as application
+application.config['DEBUG'] = True
Please sign in to comment.
Something went wrong with that request. Please try again.