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
server { | |
listen 80; | |
server_name intercityup.com intercityup.nl www.intercityup.com www.intercityup.nl; | |
root /u/apps/intercity_site_production/current/public; | |
passenger_enabled on; | |
passenger_app_env production; | |
} | |
server { |
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
set :application, 'APPNAME' | |
set :repo_url, 'git@github.com:YOU/APPNAME.git' | |
# Default branch is :master | |
# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp } | |
# Default deploy_to directory is /var/www/my_app | |
set :deploy_to, '/u/apps/APPNAME' | |
# Use agent forwarding for SSH so you can deploy with the SSH key on your workstation. |
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
<script type="text/javascript"> | |
twttr.events.bind('follow', function(event) { | |
_kmq.push(['record', 'Follow on Twitter']); | |
}); | |
</script> | |
<script type="text/javascript"> | |
twttr.events.bind('tweet', function(event) { | |
_kmq.push(['record', 'Tweeted the post']); | |
}); |
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
<script type="text/javascript"> | |
FB.Event.subscribe('comment.create', function(response) { | |
_kmq.push(['record', 'Comments on a post with Facebook Comments']); | |
}); | |
</script> |
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
<script type="text/javascript"> | |
_kmq.push(['record', "Viewed Blogpost", {"Displaying share buttons on bottom of single post": "true"}]); | |
</script> |
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
<script | |
src="http://insights.kioskfolio.com/theme_forest_items/[themeforst template id]/badge.js" | |
data-ref="michiels" | |
id="kioskfolio-item-badge"> | |
</script> |
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
default[:ree][:version] = "1.8.7-2011.03" | |
default[:nginx][:version] = "1.1.10" | |
default[:passenger][:version] = "3.0.11" | |
case platform | |
when "debian","ubuntu" | |
set[:nginx][:dir] = "/etc/nginx" | |
set[:nginx][:log_dir] = "/var/log/nginx" | |
set[:nginx][:user] = "www-data" | |
set[:nginx][:binary] = "/usr/sbin/nginx" |
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
def test_build_creates_workspace_directories | |
@builder.build | |
assert File.exists?(File.expand_path("builds/cool_rails_project")), "Expected directory builds/cool_rails_project to exist." | |
end |
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
module GroundControl | |
class BuilderTest < Test::Unit::TestCase | |
def setup | |
if File.exists?(File.expand_path("builds/cool_rails_project")) | |
FileUtils.rm_r(File.expand_path("builds/cool_rails_project")) | |
end | |
@builder = Builder.new("cool_rails_project", {"git" => "test/repositories/dot_git_rails"} |
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
module GroundControl | |
class Builder | |
def new(project_name, config) | |
@workspace = File.expand_path(File.join("builds", project_name)) | |
end | |
def build | |
FileUtils.mkdir_p(@workspace) | |
end | |
end |
OlderNewer