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
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
#!/usr/bin/env ruby
#^syntax detection
site 'http://community.opscode.com/api/v1'
cookbook "apt"
cookbook "build-essential", {}
cookbook "rvm", {:github=>"fnichol/chef-rvm", :ref=>"v0.9.0"}
cookbook "git", {}
cookbook "postgresql", {}
@itsNikolay
itsNikolay / application.css
Created March 11, 2013 10:51
application.css
/*
*= require_self
*= require_tree .
*/
@import "bootstrap";
html, body {
height: 100%;
}
* 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
}