rvm gemdir #=> get current gemset
rvm alias create <app_name> <app_gemset>
# rvm alias create test ruby-2.1.2@test
Find the wrapper path
echo $rvm_path/wrappers/
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\" |
# 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 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)
# 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] |
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 |
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 |
# /config/puma.rb | |
app = "manabalss" # App-specific | |
root = "/home/deployer/apps/#{app}" | |
workers 5 | |
threads 1, 1 # relying on many workers for thread-unsafe apps | |
rackup DefaultRackup | |
port 11592 |