Skip to content

Instantly share code, notes, and snippets.

View arthurfurlan's full-sized avatar

Arthur Furlan arthurfurlan

View GitHub Profile
ssh_options[:forward_agent] = true
default_run_options[:pty] = true
##
## available environments
##
task :production do
set :application, 'myapp.com'
set :repository, 'https://github.com/user/project.git'
# Sample verbose configuration file for Unicorn (not Rack)
#
# This configuration file documents many features of Unicorn
# that may not be needed for some applications. See
# http://unicorn.bogomips.org/examples/unicorn.conf.minimal.rb
# for a much simpler configuration file.
#
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
# documentation.
#require 'capistrano/bundler'
before "deploy:restart", "deploy:migrate"
# config valid only for Capistrano 3.1
lock '3.2.1'
set :repo_url, 'git@bitbucket.org:diogolmenezes/tripbag.git'
set :rvm_ruby_string, 'ruby-2.1.1@tripolis.com.br'
set :rvm_type, :system
set :deploy_to, "/srv/tripolis.com.br/www"
# config valid only for Capistrano 3.1
lock '3.2.1'
set :repo_url, 'git@bitbucket.org:diogolmenezes/tripbag.git'
set :rvm_ruby_string, 'ruby-2.1.1@#{host}'
set :rvm_type, :system
set :deploy_to, '/srv/#{host}/www'
set :user, 'root'
set :group, 'www-users'
# config valid only for Capistrano 3.1
lock '3.2.1'
server "bebe.maeemacao.com.br", :app, :web, :db, :primary => true
set :server_web, "sasha.minestore.me"
set :application, "tripolis.com.br"
set :domain, 'tripolis.com.br'
set :host, 'tripolis.com.br'
from fabric.api import env, run
## available roles
def db():
env.hosts = ['db1', 'db2']
def web():
env.hosts = ['web1', 'web2', 'web3']
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# written by Configr Inc. <hello@configr.com>
from fabric.api import *
import os
## available environments
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# written by Arthur Furlan <afurlan@confi.gr>
from fabric.api import *
import os
## available environments
@arthurfurlan
arthurfurlan / hello.php
Last active December 18, 2015 11:09
why do I like python!?
#!/usr/bin/env php
<?php
class Hello {
public function say($what) {
echo "Hello {$what}!\n";
}
}
$hello = new Hello();
## voce estava usando o "verbose_name" da forma errada, vou colocar
## aqui da forma eu acredito que você deve estar querendo usar e
## qualquer coisa você me corrige :)
class News(models.Model):
## ... bla bla bla, campos desse model que não interessa
class NewsPhotos(models.Model):
## ... bla bla bla, campos desse model que não interessa