forked from civiccc/mockr
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Clean up layouts - Clean up views/{home,projects} - Clean up helpers - Clean up views/settings - Clean up views/{shared,usage,users} - Collapse Mockr lib into ApplicationController - The Mockr module consisted solely of unclaimed?, so I just collapsed it down into ApplicationController. Cleaned up references in associated templates and controllers. - Update mock mailers - moves mock related mailers into mock_mailer from notifier - update the gmail_smtp settings for the new Rails 3.0 configuration settings - change default sending email address to use the specified domain name - Fix jquery javascript_include_tags - Fix deprecated error_message_on - Fix library includes - Locally, the development server was dealing with `require 'lib/*'` gracefully, but Heroku is being complainy. This commit removes the 'lib/' prefix. Change-Id: I0dafcc65fe3d21eb67d4395fa532d098ae05de65 Reviewed-on: https://gerrit.causes.com/5291 Reviewed-by: Adam Derewecki <adam@causes.com> Tested-by: Adam Derewecki <adam@causes.com>
- Loading branch information
Adam Derewecki & Lann Martin
authored and
Adam Derewecki
committed
Apr 14, 2012
1 parent
b902620
commit 19c9d07
Showing
27 changed files
with
131 additions
and
84 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
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
## Introduction | ||
Mockr is a beautiful and fun app for managing mock-ups and images associate with | ||
a project. Mockr supports commenting on selections of the mock to enable a | ||
discussion on the topic. | ||
|
||
## Setup - on Heroku | ||
Choose a mockr name -- the app will be at http://$mockrname.heroku.com/ | ||
Accounts to set up: | ||
|
||
- Facebook (facebook.com/developers) | ||
- Sign up for an app and set your app domain to $mockrname.heroku.comA | ||
- You'll need your app_id and key (same) and secret key | ||
- Amazon Web Services S3 (aws.amazon.com) | ||
- You'll need your access_key and secret_key | ||
- GMail account for notification emails (gmail.com) | ||
- You'll need your username and password (and domain if it's not @gmail.com) | ||
|
||
```bash | ||
git clone git@github.com:causes/mockr.git | ||
bundle install | ||
bundle exec rake db:migrate | ||
heroku create $mockrname | ||
heroku rake db:migrate | ||
heroku config:add \ | ||
GMAIL_SMTP_USER='username' \ | ||
GMAIL_SMTP_PASSWORD='password' \ | ||
GMAIL_SMTP_DOMAIN='domain.com' \ | ||
INSTANCE_NAME="$mockrname" \ | ||
AWS_S3_ACCESS_KEY_ID='access_key' \ | ||
AWS_S3_SECRET_ACCESS_KEY='secret_key' \ | ||
FB_APP_ID=000000000000000 \ | ||
FB_KEY=000000000000000 \ | ||
FB_SECRET=00000000000000000000000000000000 | ||
git push heroku master | ||
``` | ||
|
||
## Setup - custom server | ||
Same steps as above except for the commands with heroku in them. To launch a | ||
local web server, you need to set the environment variables: | ||
|
||
```bash | ||
GMAIL_SMTP_USER='username' \ | ||
GMAIL_SMTP_PASSWORD='password' \ | ||
GMAIL_SMTP_DOMAIN='domain.com' \ | ||
INSTANCE_NAME="$mockrname" \ | ||
AWS_S3_ACCESS_KEY_ID='access_key' \ | ||
AWS_S3_SECRET_ACCESS_KEY='secret_key' \ | ||
FB_APP_ID=000000000000000 \ | ||
FB_KEY=000000000000000 \ | ||
FB_SECRET=00000000000000000000000000000000 \ | ||
bundle exec rails 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
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
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
File renamed without changes.
File renamed without changes.
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
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
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,6 +1,6 @@ | ||
<% if !flash[:notice].blank? %> | ||
<% if flash[:notice].present? %> | ||
<div id="notice"> | ||
<%= link_to "x", "#", :class => "hide_link" %> | ||
<%= flash[:notice] %> | ||
<%= raw(flash[:notice]) %> | ||
</div> | ||
<% 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
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
Oops, something went wrong.