Question re: should this be rack's job
# config.ru
run ->(env) {
[ 200, { 'Content-Type' => 'text/html', }, [Rack::Request.new(env).params.inspect] ]
}
package net.cogindo.ssl; | |
import java.io.IOException; | |
import java.net.InetAddress; | |
import java.net.Socket; | |
import java.net.UnknownHostException; | |
import java.security.KeyManagementException; | |
import java.security.NoSuchAlgorithmException; | |
import javax.net.ssl.SSLContext; |
RUBY_GC_HEAP_FREE_SLOTS=600000 | |
RUBY_GC_HEAP_GROWTH_FACTOR=1.25 | |
RUBY_GC_HEAP_GROWTH_MAX_SLOTS=300000 | |
RUBY_GC_HEAP_INIT_SLOTS=600000 | |
RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.3 | |
RUBY_GC_MALLOC_LIMIT=64000000 | |
RUBY_GC_OLDMALLOC_LIMIT=64000000 | |
RUBY_HEAP_FREE_MIN=12500 | |
RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
RUBY_HEAP_SLOTS_INCREMENT=100000 |
Question re: should this be rack's job
# config.ru
run ->(env) {
[ 200, { 'Content-Type' => 'text/html', }, [Rack::Request.new(env).params.inspect] ]
}
require 'bundler/capistrano' | |
# This capistrano deployment recipe is made to work with the optional | |
# StackScript provided to all Rails Rumble teams in their Linode dashboard. | |
# | |
# After setting up your Linode with the provided StackScript, configuring | |
# your Rails app to use your GitHub repository, and copying your deploy | |
# key from your server's ~/.ssh/github-deploy-key.pub to your GitHub | |
# repository's Admin / Deploy Keys section, you can configure your Rails | |
# app to use this deployment recipe by doing the following: |
ruby -e "require 'open-uri'; open('http://google.com'){|response| print response.status}" | |
#["200", "OK"] |
# MySQL. Versions 4.1 and 5.0 are recommended. | |
# | |
# Install the MySQL driver: | |
# gem install mysql2 | |
# | |
# And be sure to use new-style password hashing: | |
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
development: | |
adapter: mysql2 | |
encoding: utf8 |