This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scale @ http://scale-mjelen.rhcloud.com/ (uuid: 518b75fde0b8cd5925000034) | |
------------------------------------------------------------------------- | |
Created: 12:10 PM | |
Gears: 1 (defaults to small) | |
Git URL: ssh://[email protected]/~/git/scale.git/ | |
SSH: [email protected] | |
php-5.3 (PHP 5.3) | |
----------------- | |
Scaling: x1 (minimum: 1, maximum: available) on small gears |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pg_dump -U $OPENSHIFT_POSTGRESQL_DB_USERNAME -h $OPENSHIFT_POSTGRESQL_DB_HOST -p $OPENSHIFT_POSTGRESQL_DB_PORT -f pg.dump $OPENSHIFT_APP_NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install, not upgrade | |
install | |
# Install from a friendly mirror and add updates | |
url --url=http://ftp.fi.muni.cz/pub/linux/fedora/linux/releases/19/Fedora/x86_64/os/ | |
repo --name=updates | |
# Language and keyboard setup | |
lang en_US.UTF-8 | |
keyboard us |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feel free to change or remove this file, it is informational only. | |
Repo layout | |
=========== | |
php/ - Externally exposed php code goes here | |
libs/ - Additional libraries | |
misc/ - For not-externally exposed php code | |
deplist.txt - list of pears to install | |
.openshift/action_hooks/pre_build - Script that gets run every git push before the build | |
.openshift/action_hooks/build - Script that gets run every git push as part of the build process (on the CI system if available) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Mod | |
def modder(param=self) | |
@self = param | |
end | |
def log(msg) | |
puts "#{@self.name} => #{msg}" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Resources: | |
# | |
# * http://bencord0.wordpress.com/2012/08/11/openshift/ | |
# | |
# Starting with clean install of Ubuntu for start | |
# Update the system | |
apt-get update | |
apt-get upgrade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'sequel' | |
DB = Sequel.sqlite('signups.db') | |
signups = [] | |
DB[:signups].all.each do |signup| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POSTGRESQL_VERSION="9.1.4" | |
# Installing DB (one-time) | |
cd $OPENSHIFT_DATA_DIR | |
wget http://ftp.postgresql.org/pub/source/v${POSTGRESQL_VERSION}/postgresql-${POSTGRESQL_VERSION}.tar.gz | |
tar xf postgresql-${POSTGRESQL_VERSION}.tar.gz | |
rm postgresql-${POSTGRESQL_VERSION}.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE pois | |
( | |
id serial NOT NULL, | |
name text NOT NULL, | |
created_at timestamp without time zone NOT NULL, | |
updated_at timestamp without time zone NOT NULL, | |
"position" geography(Point,4326), | |
CONSTRAINT pois_pkey PRIMARY KEY (id ), | |
CONSTRAINT pois_name_key UNIQUE (name ) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clone Thick repo (git://github.com/marekjelen/thick.git) | |
Install required gems (rack, rake, rspec, sinatra) | |
JRuby version: jruby-1.7.0.preview1 | |
--------------------- | |
cd thick/example | |
jruby ../bin/thick -R |