Skip to content

Instantly share code, notes, and snippets.

View candidosales's full-sized avatar
🏠
Focusing

Candido Sales Gomes candidosales

🏠
Focusing
View GitHub Profile
@candidosales
candidosales / error
Last active December 12, 2015 02:28
Error capistrano
candidosg@candidosg-XPS-L421X:~/midiaexterna$ cap deploy:check
* 2013-02-06 16:02:29 executing `deploy:check'
* executing "test -d /home/ubuntu/midiaexterna/releases"
servers: ["177.71.250.61"]
connection failed for: 177.71.250.61 (Net::SSH::AuthenticationFailed: ubuntu)
candidosg@candidosg-XPS-L421X:~/midiaexterna$ cd
candidosg@candidosg-XPS-L421X:~$ ssh -v -A ubuntu@177.71.250.61
OpenSSH_6.0p1 Debian-3ubuntu1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 22: Applying options for *
# ==============================================================
# SET's
# ==============================================================
set :domain, "177.71.250.61"
set :application, "midiaexterna"
set :repository, "git@github.com:candidosales/midiaexterna.git"
default_run_options[:pty] = true
ssh_options[:verbose] = :debug
@candidosales
candidosales / ruby install amazon
Created February 6, 2013 03:55
Dicas do Daniel Romero
## Atualizar Ubuntu
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
$ sudo apt-get autoremove
$ sudo reboot
## Instalar alguns pacotes extras
# ==============================================================
# SET's
# ==============================================================
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
set :domain, "177.71.250.61"
set :application, "midiaexterna"
set :repository, "git@github.com:candidosales/#{application}.git"
rails_env = ENV['RAILS_ENV'] || 'development'
threads 4,4
bind "unix:///home/ubuntu/midiaexterna/current/tmp/puma.sock"
pidfile "/home/ubuntu/midiaexterna/current/tmp/puma/pid"
state_path "/home/ubuntu/current/midiaexterna/tmp/puma/state"
activate_control_app
upstream midiaexterna {
server unix:///home/ubuntu/midiaexterna/current/tmp/puma.sock;
}
server {
listen 80;
server_name 177.71.250.61;
keepalive_timeout 5;
#! /bin/sh
### BEGIN INIT INFO
# Provides: puma
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
/home/ubuntu/midiaexterna/current/,ubuntu,/home/ubuntu/midiaexterna/current/config/puma.rb,/home/ubuntu/midiaexterna/current/config/log/puma.log
(function() {
// Version: v1.0.0-rc.1-188-gb6bb967
// Last commit: b6bb967 (2013-03-16 18:09:42 -0700)
(function() {
/*global __fail__*/
/**
Ember Debug
(function() {
window.DS = Ember.Namespace.create({
// this one goes past 11
CURRENT_API_REVISION: 12
});
})();