# in config/puma.rb
app = "shproduct" # App-specific
root = "/home/deployer/apps/#{app}"
workers 6
threads 1, 1
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
1. DL the latest binary from DF homepage at | |
http://www.bay12games.com/dwarves/ | |
2. DL minimal soundsense from Copy Public/pakas | |
Unrar, place in DF folder | |
3. DL latest therapist at https://github.com/splintermind/Dwarf-Therapist or | |
http://www.bay12forums.com/smf/index.php?topic=122968 | |
4. DL Quickfort |
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
If you are on windows, start by setting up an Ubuntu in a VirtualBox | |
= http://www.psychocats.net/ubuntu/virtualbox | |
First you wanna update Ubuntu | |
$ sudo apt-get update | |
$ sudo apt-get upgrade | |
$ sudo apt-get dist-upgrade | |
$ sudo reboot | |
Add repositories |
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
# Mina Deploy | |
# =========== | |
# | |
# Adapted from Creative deploy stack in Manabalss v4, Mar.2015 | |
# On first deploy do: mina setup --verbose | |
# Then do : mina deploy --trace | |
# | |
# Usage: | |
# mina deploy --verbose # Standard deploy task | mina deploy[hard,seed] to hard-reset and seed | |
# mina rake[db:seed] |
This is just a jotting of notes on how to embed Faye into a single Rails process. Makes it nice to do simple real time things without the need for a separate Faye server/process.
Also uses Faye Redis to work across load balanced Rails apps.
You also need to copy the compiled javascript into vendor/assets/javascripts
and include into application.js
manifest.
Ignore the numbers in the file names... just used to add order to the Gist.
This uses the faye/faye Github repo at edc5b42f6560d31eae61caf00f6765a90e1818d1
since I wanted to use with the Puma rack server and that is only available in the master branch (until Faye 1.0)
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
# Mina Deploy | |
# =========== | |
# | |
# Adapted from Creative deploy stack in Manabalss v4, Mar.2015, updated to support staging on Jun.2015 | |
# On first deploy do: mina setup --verbose | |
# Then do : mina deploy[initialize] --trace | |
# | |
# Usage examples: | |
# mina deploy[soft,seed,compile] to=staging # deploy task with all options | a simple `mina deploy` will deploy to production | |
# mina rake[db:seed] # for multi-argument tasks # mina 'rake[payments:refund[arg1\,arg2]]' |
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
request | |
.env={ | |
"rack.version"=>[1,3] | |
"rack.errors\"=>#<IO:<STDERR>> | |
"rack.multithread\"=>false | |
"rack.multiprocess\"=>false | |
"rack.run_once\"=>false | |
"SCRIPT_NAME\"=>\"\" | |
"CONTENT_TYPE\"=>\"text/plain\" | |
"QUERY_STRING\"=>\"param1=true¶m2=false\" |
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
RESPONSE_CODES = { | |
"000" => "Approved", | |
"001" => "Approved, honour with identification", | |
"002" => "Approved for partial amount", | |
"003" => "Approved for VIP", | |
"004" => "Approved, update track 3", | |
"005" => "Approved, account type specified by card issuer", | |
"006" => "Approved for partial amount, account type specified by card issuer", | |
"007" => "Approved, update ICC", | |
"100" => "Decline (general, no comments)", |