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
➜ app git:(development) git checkout master | |
/Library/Ruby/Gems/1.8/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `materialize': Could not find rake-10.0.3 in any of the sources (Bundler::GemNotFound) | |
from /Library/Ruby/Gems/1.8/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `map!' | |
from /Library/Ruby/Gems/1.8/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `materialize' | |
from /Library/Ruby/Gems/1.8/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs' | |
from /Library/Ruby/Gems/1.8/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for' | |
from /Library/Ruby/Gems/1.8/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in `requested_specs' | |
from /Library/Ruby/Gems/1.8/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in `requested_specs' | |
from /Library/Ruby/Gems/1.8/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup' | |
from /Library/Ruby/Gems/1.8/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup' |
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, sudo, local, put | |
def production(): | |
"""Defines production environment""" | |
env.user = "deploy" | |
env.hosts = ['example.com',] | |
env.base_dir = "/var/www" | |
env.app_name = "app" | |
env.domain_name = "app.example.com" | |
env.domain_path = "%(base_dir)s/%(domain_name)s" % { 'base_dir':env.base_dir, 'domain_name':env.domain_name } |
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
#!/bin/sh | |
# deploy.sh | |
N="`readlink \"$1\"`" | |
mv -T "$1.stage" "$1" | |
ln -s "$N" "$1.stage" | |
rm -rf "$N" | |
cp -aH "$1" "$N" |
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/php | |
<?php | |
error_reporting(E_ALL); | |
if (count($argv) <= 1) { | |
print("usage createMockup src_dir dst_dir images_dir\n"); | |
print("\tsrc_dir : dir where all bmml file are\n"); | |
print("\tdst_dir : dir where write all html files\n"); | |
print("\timages_dir : dir where all export mockup png are (will be copied to the \$dst_dir/images directory)\n"); | |
exit(1); | |
} |
NewerOlder