Skip to content

Instantly share code, notes, and snippets.

View itsNikolay's full-sized avatar
📈
Better then yesterday

Nikolay Ponomarev itsNikolay

📈
Better then yesterday
View GitHub Profile
* 2013-03-10 23:26:23 executing `deploy'
* 2013-03-10 23:26:23 executing `deploy:update'
** transaction: start
* 2013-03-10 23:26:23 executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote ssh://user@198.211.125.210:2912/home/user/repos/wood-awesome.git master"
command finished in 1041ms
* executing "if [ -d /home/user/projects/wood-awesome/shared/cached-copy ]; then cd /home/user/projects/wood-awesome/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 74acf135a2f939174bf1a791e12390672d59761b && git clean -q -d -x -f; else git clone -q ssh://user@198.211.125.210:2912/home/user/repos/wood-awesome.git /home/user/projects/wood-awesome/shared/cached-copy && cd /home/user/projects/wood-awesome/shared/cached-copy && git checkout -q -b deploy 74acf135a2f939174bf1a791e12390672d59761b; fi"
servers: ["198.211.125.210"]
[198.211.125.210] executing command
source 'https://rubygems.org'
gem 'rails', '3.2.12'
gem "pg"
gem 'jquery-rails'
gem 'therubyracer'
gem 'haml-rails'
gem 'bootstrap-sass', '~> 2.3.0.0'
group :assets do
2013/03/10 13:08:48 [emerg] 24928#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:08:48 [emerg] 24928#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:08:48 [emerg] 24928#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:08:48 [emerg] 24928#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:08:48 [emerg] 24928#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:08:48 [emerg] 24928#0: still could not bind()
2013/03/10 13:09:00 [emerg] 24945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:09:00 [emerg] 24945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:09:00 [emerg] 24945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2013/03/10 13:09:00 [emerg] 24945#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
Rendered services/index.html.haml within layouts/application (1.4ms)
Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.5ms)
Started GET "/" for 83.139.137.225 at 2013-03-10 14:22:59 +0400
Processing by ServicesController#index as HTML
Rendered services/index.html.haml within layouts/application (0.8ms)
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)
Started GET "/" for 83.139.137.225 at 2013-03-10 14:22:59 +0400
Processing by ServicesController#index as HTML
Rendered services/index.html.haml within layouts/application (0.7ms)
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms)
# coding: utf-8
require 'rvm/capistrano' # Для работы rvm
require "bundler/capistrano"
load 'deploy/assets'
server "198.211.125.210", :web, :app, :db, primary: true
set :application, "wood-awesome"
set :user, "user"
set :deploy_to, "/home/#{user}/projects/#{application}"
# coding: utf-8
worker_processes 2
listen "/tmp/wood-awesome.app.sock"
pid "/tmp/wood-awesome.app.pid"
stderr_path "log/wood-awesome.unicorn.log"
stdout_path "log/wood-awesome.unicorn.log"
worker_processes 1;
pid /tmp/nginx.pid;
error_log /tmp/nginx.error.log;
events {
worker_connections 1024; # increase if you have lots of clients
accept_mutex off; # "on" if nginx worker_processes > 1
}
@itsNikolay
itsNikolay / howto.md
Last active December 13, 2015 16:59
Инструкция по созданию рисунков к макетам спецпроектам "Праздники".

##Создание макета для спецпроекта.

Каждый макет спецпроекта состоит из 4 рисунков (рисунок в шапке, рисунок под шапкой, рисунок в футере и рисунок для соц. сети.) и кода цвета для фона.

  1. Рисунок в шапке должен быть размером 1280х404 пиксилей (ширина х высота).
    Формат: jpg/jpeg/png
    Пример: http://ny.36on.ru/uploads/project/background_header/1/header-page-background.png

  2. Рисунок под шапкой должен быть размером 2560х1204 пиксилей (ширина х высота).
    Формат: jpg/jpeg/png

$> rake g migraiton add_institution_id_to_users institution_id:integer
$> rake g migration add_user_id_to_loans user_id:integer
$> rake g migration add_loan_id_to_quotes loan_id:integer
$> rake g migration add_institution_id_to_type_of_loans institution_id:integer
models/institutions.rb
class Institution < ActiveRecord::Base
has_many :users
has_many :type_of_loans
end
@itsNikolay
itsNikolay / gist:4307796
Created December 16, 2012 14:27
gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.9'
gem "spree", "~> 1.2.2"
gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git'
gem 'russian'
gem "spree_address_book", :git => "git://github.com/romul/spree_address_book.git"
gem 'spree_static_content', :git => 'git://github.com/spree/spree_static_content.git', :branch => '1-2-stable'
gem 'spree_editor', :git => 'git@github.com:itsNikolay/spree_editor.git'