-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
86 additions
and
280 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
load 'deploy' if respond_to?(:namespace) # cap2 differentiator | ||
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } | ||
load 'config/deploy' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# Methods added to this helper will be available to all templates in the application. | ||
module ApplicationHelper | ||
|
||
def piece_image_tag piece, size=300 | ||
content_tag "div", :class => "piece" do | ||
image_tag "/os/#{size}/#{piece.legacy_id}.png" | ||
end | ||
end | ||
|
||
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<h1><%= @piece.title %></h1> | ||
|
||
<div> | ||
<%= image_tag "/os/500/#{@piece.legacy_id}.png" %> | ||
<%= piece_image_tag @piece, 640 %> | ||
</div> | ||
|
||
<p> | ||
Creator: <%= link_to h(@piece.creator.name), member_path(@piece.creator) %> | ||
Owner: <%= link_to h(@piece.owner.name), member_path(@piece.owner) %> | ||
</p> | ||
|
||
<p> | ||
Owner: <%= link_to h(@piece.owner.name), member_path(@piece.owner) %> | ||
Created by <%= link_to h(@piece.creator.name), member_path(@piece.creator) %> <%= @piece.created_at.to_formatted_s(:long) %>.<br/> Last modified <%= @piece.updated_at.to_formatted_s(:long) %> | ||
</p> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# The host where people will access my site | ||
set :application, "openstudio.tacolab.com" | ||
set :user, "openstudio" | ||
set :admin_login, "openstudio" | ||
|
||
# repo info | ||
set :repository, "[email protected]:burnto/OPENSTUDIO-archive.git" | ||
set :scm, "git" | ||
set :branch, "master" | ||
|
||
set :deploy_to, "/home/#{admin_login}/#{application}" | ||
|
||
# My DreamHost-assigned server | ||
set :domain, "#{application}" | ||
role :app, domain | ||
role :web, domain | ||
role :db, domain, :primary => true | ||
|
||
set :use_sudo, false | ||
# set :checkout, "export" | ||
set :scm_verbose, true | ||
set :repository_cache, "git_cache" | ||
set :deploy_via, :remote_cache | ||
|
||
# additional settings | ||
default_run_options[:pty] = true # Forgo errors when deploying from windows | ||
#ssh_options[:keys] = %w(/Path/To/id_rsa) # If you are using ssh_keys | ||
set :chmod755, "app config db lib public vendor script script/* public/disp*" | ||
|
||
############################################################# | ||
# Passenger | ||
############################################################# | ||
|
||
namespace :passenger do | ||
desc "Restart Application" | ||
task :restart do | ||
run "touch #{current_path}/tmp/restart.txt" | ||
end | ||
end | ||
|
||
after :deploy, "passenger:restart" |
Oops, something went wrong.