This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import env, run | |
## available roles | |
def db(): | |
env.hosts = ['db1', 'db2'] | |
def web(): | |
env.hosts = ['web1', 'web2', 'web3'] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# written by Configr Inc. <hello@configr.com> | |
from fabric.api import * | |
import os | |
## available environments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# written by Arthur Furlan <afurlan@confi.gr> | |
from fabric.api import * | |
import os | |
## available environments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
class Hello { | |
public function say($what) { | |
echo "Hello {$what}!\n"; | |
} | |
} | |
$hello = new Hello(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
NewerOlder