Skip to content

Instantly share code, notes, and snippets.

View rusllonrails's full-sized avatar
💭
👨‍💻 💻 🖱️ 🍻 🏋️‍♂️

rusllonrails rusllonrails

💭
👨‍💻 💻 🖱️ 🍻 🏋️‍♂️
  • Tbilisi, Georgia
View GitHub Profile
@rusllonrails
rusllonrails / gist:3891432
Created October 15, 2012 08:24
rails tmp permission to assets trouble
Add to your nginx.conf line:
user www-data;
Then:
sudo chown -R www-data YOUR_APP_PATH
@rusllonrails
rusllonrails / NGINX request sizes settings
Created October 15, 2012 19:08
NGINX request sizes settings
Ошибки nginx’a
Опубликовано 06.07.2012 автором skeletor
[error] upstream timed out (Operation timed out) while reading response header from upstream
Эта ошибка появляется тогда, когда страница генерируется больше времени, чем установленный timeout front-end’a. Обычно она возникает когда nginx отправляет запросы дальше (на apache, на php-fpm, …) По умолчанию эти таймауты – 60 секунд. Поставим 180 (эти параметры прописываются в location):
proxy_send_timeout 180s;
proxy_read_timeout 180s;
@rusllonrails
rusllonrails / gist:3978646
Created October 30, 2012 06:34 — forked from workshur/[GIT] Ignor local changes
[GIT] Игнор локальных изменений файла
git update-index --assume-unchanged <path&filename>
@rusllonrails
rusllonrails / gist:4414847
Created December 30, 2012 20:14
MYSQL support UTF-8
below is my configure to support utf8:
[client]
default-character-set=utf8
[mysqld]
init_connect='SET collation_connection = utf8_unicode_ci'
init_connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake
@rusllonrails
rusllonrails / gist:4414885
Created December 30, 2012 20:18
Capistrano + RBENV path fix
set :default_environment, {
"PATH" => "/home/#{user}/.rbenv/shims:/home/#{user}/.rbenv/bin:$PATH",
}
@rusllonrails
rusllonrails / gist:4493021
Created January 9, 2013 13:13
Play on linux install
https://help.ubuntu.com/community/PlayOnLinux
@rusllonrails
rusllonrails / gist:4547758
Created January 16, 2013 15:04
SSH auto login
cat ~/.ssh/id_rsa.pub | ssh deployer@your_ip_address 'cat >> ~/.ssh/authorized_keys'
in root of your app: ssh-add
@rusllonrails
rusllonrails / gist:4547836
Created January 16, 2013 15:14
Hiow to setup Capistrano with different servers
http://www.djkiger.com/?p=7
@rusllonrails
rusllonrails / gist:4555493
Created January 17, 2013 12:03
Speeding up Capistrano Deployments from 6 Minutes to 9 Seconds by Skipping Asset Compilation
http://www.bencurtis.com/2011/12/skipping-asset-compilation-with-capistrano/
namespace :deploy do
namespace :assets do
task :precompile, :roles => :web, :except => { :no_release => true } do
from = source.next_revision(current_revision)
@rusllonrails
rusllonrails / gist:4564303
Last active December 11, 2015 07:09
Rvmsudo passenger-install-nginx-module not found
rvmsudo /home/deployer/.rvm/gems/ruby-1.9.3-p327@your_gemset/gems/passenger-3.0.18/bin/passenger-install-nginx-module