This file contains 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
Sinatra project structure | |
app.rb # require sinatra, haml, vendor'd gems, models/init, routes/init, helpers/init | |
helpers/ | |
init.rb # Requires each helper file | |
helper1.rb # Related helper methods | |
models/ | |
init.rb # Require sequel, set up the DB; require each model, in controlled order |
This file contains 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
qa.rb | |
----- | |
default_environment['PATH']='$HOME/.rvm/bin:$PATH' | |
set :application_directory, "test_project" | |
set :rails_env, "qa" | |
set :main_server, 'ogolan' | |
server "#{main_server}", :web, :app, :db, :primary => true | |
set :deploy_to, "/srv/#{application_directory}" |
This file contains 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
[2011-03-04 13:58:31] GEM_PATH="/home/oren/.rvm/gems/ruby-1.9.2-p180:/home/oren/.rvm/gems/ruby-1.9.2-p180@global:/home/oren/.rvm/gems/ruby-1.9.2-p180@global" GEM_HOME="/home/oren/.rvm/gems/ruby-1.9.2-p180" "/home/oren/.rvm/rubies/ruby-1.9.2-p180/bin/ruby" "/home/oren/.rvm/src/rubygems-1.5.2/setup.rb" | |
RubyGems 1.5.2 installed | |
=== 1.5.2 / 2011-02-10 | |
NOTE: RubyGems 1.5.0 and 1.5.1 have a broken <tt>gem update --system</tt>. | |
To upgrade you'll need to use the manual upgrade recipe. Using sudo/su as | |
appropriate: |
This file contains 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
ccapdeploy@cms:~$ cd /srv/media_qa/current | |
+ cd /srv/media_qa/current | |
+ builtin cd /srv/media_qa/current | |
+ local result=0 | |
+ __rvm_project_rvmrc | |
+ local cwd | |
+ cwd=/srv/media_qa/current | |
+ : | |
+ [[ -z /srv/media_qa/current ]] | |
+ [[ /home/capdeploy = \/\s\r\v\/\m\e\d\i\a\_\q\a\/\c\u\r\r\e\n\t ]] |
This file contains 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
.rvmrc don't change ruby/gemset: | |
capdeploy@cms:~$ cd /srv/media_qa/current | |
+ cd /srv/media_qa/current | |
+ builtin cd /srv/media_qa/current | |
+ local result=0 | |
+ __rvm_project_rvmrc | |
+ local cwd | |
+ cwd=/srv/media_qa/current | |
+ : |
This file contains 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 M | |
CONTENT = foo | |
def foo | |
'hello' | |
end | |
end | |
puts M::CONTENT |
This file contains 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
cat /usr/local/rvm/bin/bootup_god | |
#!/usr/bin/env bash | |
if [[ -s "/usr/local/rvm/environments/ruby-1.9.2-p136@global" ]] ; then | |
echo '1' | |
source "/usr/local/rvm/environments/ruby-1.9.2-p136@global" | |
echo '2' | |
exec god "$@" | |
else | |
echo "ERROR: Missing RVM environment file: '/usr/local/rvm/environments/ruby-1.9.2-p136@global'" >&2 |
This file contains 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
make | |
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I. -I.ext/include/x86_64-linux -I./include -I. -DRUBY_EXPORT -o main.o -c main.c | |
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I. -I.ext/include/x86_64-linux -I./include -I. -DRUBY_EXPORT -o dln.o -c dln.c | |
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I. -I.ext/include/x86_64-linux -I./include -I. -DRUBY_EXPORT -o dmydln.o -c dmydln.c | |
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I. -I.ext/include/x86_64-linux -I./include -I. -DRUBY_EXPORT -o dmyencoding.o -c dmyencoding.c | |
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -W |
This file contains 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
make | |
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I. -I.ext/include/x86_64-linux -I./include -I. -DRUBY_EXPORT -o main.o -c main.c | |
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I. -I.ext/include/x86_64-linux -I./include -I. -DRUBY_EXPORT -o dln.o -c dln.c | |
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I. -I.ext/include/x86_64-linux -I./include -I. -DRUBY_EXPORT -o dmydln.o -c dmydln.c | |
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I. -I.ext/include/x86_64-linux -I./include -I. -DRUBY_EXPORT -o dmyencoding.o -c dmyencoding.c | |
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -W |
This file contains 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
capdeploy@domU-12-31-39-0E-E1-E4:/srv/chihuly_staging/current/tmp$ ls /srv/chihuly_staging/current/tmp/ -la | |
total 8 | |
drwxrwxrwx 2 capdeploy capdeploy 4096 2011-01-20 19:43 . | |
drwxrwxr-x 17 capdeploy capdeploy 4096 2011-01-20 19:43 .. | |
lrwxrwxrwx 1 capdeploy capdeploy 32 2011-01-20 19:43 pids -> /srv/chihuly_staging/shared/pids | |
capdeploy@domU-12-31-39-0E-E1-E4:/srv/chihuly_staging/current/tmp$ ls /srv/chihuly_staging/shared -la | |
total 24 | |
drwxrwxr-x 6 capdeploy capdeploy 4096 2011-01-20 19:42 . | |
drwxrwxr-x 4 capdeploy capdeploy 4096 2011-01-20 19:43 .. | |
drwxr-xr-x 16 capdeploy capdeploy 4096 2011-01-20 19:43 cached-copy |