Skip to content

Instantly share code, notes, and snippets.

@mizchi
mizchi / 「フロントエンドデベロッパー面接時の質問事項」への解答.md
Last active February 15, 2024 21:29
「フロントエンドデベロッパー面接時の質問事項」への解答
@ympbyc
ympbyc / FunctionalJs.md
Last active July 8, 2024 08:55
Functional JavaScript

Functional JavaScript

2013 Minori Yamashita ympby@gmail.com

-- ここにあなたの名前を追記 --

目次

user {ユーザ名};
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 768;
}
http {
@rkmathi
rkmathi / deploy.rb
Created December 5, 2012 15:24
http://blog.has-key.org/208 - 4. デプロイの準備
require "capistrano_colors"
require "bundler/capistrano"
# RVM settings
# $:.unshift(File.expand_path("./lib", ENV["rvm_path"]))
require "rvm/capistrano"
set :rvm_type, :user
set :rvm_ruby_string, "1.9.3"
# Repository settings
# unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D
rails_env = ENV['RAILS_ENV'] || 'production'
# 16 workers and 1 master
worker_processes (rails_env == 'production' ? 16 : 4)
# Load rails+github.git into the master before forking workers
# for super-fast worker spawn times
preload_app true