heroku compatibility

12 views
Skip to first unread message

HeresTomWithTheWeather

unread,
Jan 18, 2010, 9:44:50 PM1/18/10
to opensourcecurrency
lee and i have the master branch so that oscurrency can easily be
deployed to heroku. the instructions are under doc/README_HEROKU.
here's a demo site which was a piece of cake to install.

http://high-ocean-79.heroku.com/

there are still some postrgresql bugs to fix and icons are not yet
working. find more about these issues on the wiki:

http://wiki.github.com/austintimeexchange/oscurrency/hosting-oscurrency-on-a-read-only-repository

if you have rails/rmagick/s3 experience and would like to help in this
effort, please do!

let me know if you have any questions. there's still more work to do
but this is very exciting to let people easily set up their own
deployments.

cheers,
tom

gargi devi

unread,
Jan 19, 2010, 9:53:01 AM1/19/10
to opensourc...@googlegroups.com
Tom,

have been watching and waiting for this... this is great news. Would like to deploy your oscurrency app also for testing and had looked at heroku.  have no  experience with ruby or generally weak when it comes to coding, so I cannot help with that, but would like to help in testing.
so, just tried to make an account at this url, but got an error. so, it's not actually a site in production yet? not even for testing???
greetings
Gargi

--
You received this message because you are subscribed to the Google Groups "opensourcecurrency" group.
To post to this group, send email to opensourc...@googlegroups.com.
To unsubscribe from this group, send email to opensourcecurre...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opensourcecurrency?hl=en.






--
God Bless You

HeresTomWithTheWeather

unread,
Jan 19, 2010, 8:33:46 PM1/19/10
to opensourcecurrency
good questions!

although your account was created and i don't know anything about the
bug you reported, i promise that there are indeed many bugs when
running on heroku (which doesn't allow writing persistent data to the
filesystem).

this branch allows rails developers to quickly deploy the software to
heroku to share with communities to see if the software can be
useful. running on heroku is not for production use until a lot more
testing and bug fixing is done. the edge branch which is not
compatible with heroku is more appropriate for production use.

thanks for your interest!

cheers,
tom

On Jan 19, 8:53 am, gargi devi <gargi...@gmail.com> wrote:
> Tom,
>
> have been watching and waiting for this... this is great news. Would like to
> deploy your oscurrency app also for testing and had looked at heroku.  have
> no  experience with ruby or generally weak when it comes to coding, so I
> cannot help with that, but would like to help in testing.
> so, just tried to make an account at this url, but got an error. so, it's
> not actually a site in production yet? not even for testing???
> greetings
> Gargi
>
> On Mon, Jan 18, 2010 at 9:44 PM, HeresTomWithTheWeather <
>
>
>
> herestomwiththeweat...@gmail.com> wrote:
> > lee and i have the master branch so that oscurrency can easily be
> > deployed to heroku.  the instructions are under doc/README_HEROKU.
> > here's a demo site which was a piece of cake to install.
>
> >http://high-ocean-79.heroku.com/
>
> > there are still some postrgresql bugs to fix and icons are not yet
> > working.  find more about these issues on the wiki:
>

> >http://wiki.github.com/austintimeexchange/oscurrency/hosting-oscurren...


>
> > if you have rails/rmagick/s3 experience and would like to help in this
> > effort, please do!
>
> > let me know if you have any questions.  there's still more work to do
> > but this is very exciting to let people easily set up their own
> > deployments.
>
> > cheers,
> > tom
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "opensourcecurrency" group.
> > To post to this group, send email to opensourc...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > opensourcecurre...@googlegroups.com<opensourcecurrency%2Bunsu...@googlegroups.com>

gargi devi

unread,
Jan 20, 2010, 10:06:39 AM1/20/10
to opensourc...@googlegroups.com
Hi Tom,

sorry, yesterday I saw your mail, but did not have time to answer it.

signd up for another account:

here is the dump:

++++++++++++++

NoMethodError in Memberships#index

Showing memberships/index.html.erb where line #11 raised:

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each

Extracted source (around line #11):

8:     <th>Accepted at</th>
9: </tr>
10:
11: <% for membership in @memberships %>
12: <tr>
13: <td><%=h membership.person_id %></td>
14: <td><%=h membership.group_id %></td>

RAILS_ROOT: /disk1/home/slugs/116170_3da435d_b260/mnt

Application Trace | Framework Trace | Full Trace
app/views/memberships/index.html.erb:11:in `_run_erb_47app47views47memberships47index46html46erb'
/home/heroku_rack/lib/static_assets.rb:9:in `call'
/home/heroku_rack/lib/last_access.rb:25:in `call'
/home/heroku_rack/lib/date_header.rb:14:in `call'
/usr/local/bin/thin:20:in `load'
/usr/local/bin/thin:20
vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:35:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
vendor/rails/actionpack/lib/action_view/base.rb:248:in `render_file'
vendor/rails/actionpack/lib/action_controller/base.rb:1112:in `render_for_file'
vendor/rails/actionpack/lib/action_controller/base.rb:845:in `render_with_no_layout'
vendor/rails/actionpack/lib/action_controller/layout.rb:251:in `render_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render_without_active_scaffold'
vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render_without_active_scaffold'
vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.rb:13:in `render'
vendor/rails/actionpack/lib/action_controller/base.rb:1161:in `default_render'
vendor/rails/actionpack/lib/action_controller/base.rb:1172:in `perform_action_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:579:in `call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:600:in `run_before_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:159:in `call'
vendor/rails/actionpack/lib/action_controller/filters.rb:159:in `call'
vendor/rails/actionpack/lib/action_controller/filters.rb:597:in `run_before_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:577:in `call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/rack/adapter/rails.rb:60:in `serve_rails'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/rack/adapter/rails.rb:80:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:60:in `call'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/connection.rb:80:in `pre_process'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/connection.rb:78:in `catch'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/connection.rb:78:in `pre_process'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/connection.rb:57:in `process'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/connection.rb:42:in `receive_data'
/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.12.6/lib/eventmachine.rb:240:in `run_machine'
/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.12.6/lib/eventmachine.rb:240:in `run'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/backends/base.rb:57:in `start'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/server.rb:150:in `start'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/controllers/controller.rb:80:in `start'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/runner.rb:173:in `send'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/runner.rb:173:in `run_command'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/runner.rb:139:in `run!'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/bin/thin:6
app/views/memberships/index.html.erb:11:in `_run_erb_47app47views47memberships47index46html46erb'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:35:in `render'
vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
vendor/rails/actionpack/lib/action_view/base.rb:248:in `render_file'
vendor/rails/actionpack/lib/action_controller/base.rb:1112:in `render_for_file'
vendor/rails/actionpack/lib/action_controller/base.rb:845:in `render_with_no_layout'
vendor/rails/actionpack/lib/action_controller/layout.rb:251:in `render_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render_without_active_scaffold'
vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render_without_active_scaffold'
vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.rb:13:in `render'
vendor/rails/actionpack/lib/action_controller/base.rb:1161:in `default_render'
vendor/rails/actionpack/lib/action_controller/base.rb:1172:in `perform_action_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:579:in `call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:600:in `run_before_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:159:in `call'
vendor/rails/actionpack/lib/action_controller/filters.rb:159:in `call'
vendor/rails/actionpack/lib/action_controller/filters.rb:597:in `run_before_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:577:in `call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/rack/adapter/rails.rb:60:in `serve_rails'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/rack/adapter/rails.rb:80:in `call'
/home/heroku_rack/lib/static_assets.rb:9:in `call'
/home/heroku_rack/lib/last_access.rb:25:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call'
/home/heroku_rack/lib/date_header.rb:14:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:60:in `call'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/connection.rb:80:in `pre_process'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/connection.rb:78:in `catch'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/connection.rb:78:in `pre_process'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/connection.rb:57:in `process'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/connection.rb:42:in `receive_data'
/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.12.6/lib/eventmachine.rb:240:in `run_machine'
/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.12.6/lib/eventmachine.rb:240:in `run'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/backends/base.rb:57:in `start'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/server.rb:150:in `start'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/controllers/controller.rb:80:in `start'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/runner.rb:173:in `send'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/runner.rb:173:in `run_command'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/lib/thin/runner.rb:139:in `run!'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.0.1/bin/thin:6
/usr/local/bin/thin:20:in `load'
/usr/local/bin/thin:20

Request

Parameters:

None

Show session dump

--- 
:return_to: 
:csrf_id: 06c71776a7a4614b889a7c779ac1c482
:verified_identity_url: 
flash: !map:ActionController::Flash::FlashHash 
  :notice: Thanks for signing up!
:person_id: 4

Response

Headers:

{"cookie"=>[],



++++++++++++++++++++++++++++++++

OK HOPE THAT HELPS!

Love,

Gargi
"Cache-Control"=>"no-cache"}


To unsubscribe from this group, send email to opensourcecurre...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/opensourcecurrency?hl=en.






--
God Bless You

HeresTomWithTheWeather

unread,
Jan 20, 2010, 9:27:09 PM1/20/10
to opensourcecurrency
wow! great find! it turns out "memberships" is one of the optional
tabs/text areas that can be configured by the admin for nonmembers.
since no existing production site uses that particular tab, the bug
never surfaced. however, when it is available, it conflicts with the
memberships controller for use with groups.

i will remove this optional tab from the source code.

cheers,
tom

On Jan 20, 9:06 am, gargi devi <gargi...@gmail.com> wrote:
> Hi Tom,
>
> sorry, yesterday I saw your mail, but did not have time to answer it.
>
> signd up for another account:
>
> here is the dump:
>
> ++++++++++++++
>  NoMethodError in Memberships#index
>

> Showing *memberships/index.html.erb* where line *#11* raised:


>
> You have a nil object when you didn't expect it!
> You might have expected an instance of Array.
> The error occurred while evaluating nil.each
>

> Extracted source (around line *#11*):


>
> 8:     <th>Accepted at</th>
> 9:   </tr>
> 10:
> 11: <% for membership in @memberships %>
> 12:   <tr>
> 13:     <td><%=h membership.person_id %></td>
>
> 14:     <td><%=h membership.group_id %></td>
>
> RAILS_ROOT: /disk1/home/slugs/116170_3da435d_b260/mnt

>  Application Trace <http://high-ocean-79.heroku.com/memberships#> | Framework
> Trace <http://high-ocean-79.heroku.com/memberships#> | Full
> Trace<http://high-ocean-79.heroku.com/memberships#>

> `serve_rails' ...
>
> read more »

gargi devi

unread,
Jan 21, 2010, 2:25:58 PM1/21/10
to opensourc...@googlegroups.com
so, how do people then sign up?

G

--
You received this message because you are subscribed to the Google Groups "opensourcecurrency" group.
To post to this group, send email to opensourc...@googlegroups.com.
To unsubscribe from this group, send email to opensourcecurre...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opensourcecurrency?hl=en.






--
God Bless You

HeresTomWithTheWeather

unread,
Jan 21, 2010, 9:59:56 PM1/21/10
to opensourcecurrency
getting the images/thumbnails working with amazon s3 and rmagick on
heroku was trivial. also, i've turned on exception notification email
so i'll be notified from now on when something breaks:

http://high-ocean-79.heroku.com

i'm going to make the postgresql_cleanup branch the new master branch
as soon as the edge branch and these recent heroku compatibility
checkins are merged into it.

it's been awhile since the last screencast (which was the most popular
one so far), i'll make heroku deployment the next one.

cheers,
tom

On Jan 21, 1:25 pm, gargi devi <gargi...@gmail.com> wrote:
> so, how do people then sign up?
>
> G
>
> On Wed, Jan 20, 2010 at 9:27 PM, HeresTomWithTheWeather <
>

> ...
>
> read more »

HeresTomWithTheWeather

unread,
Jan 26, 2010, 5:43:42 PM1/26/10
to opensourcecurrency
fyi, here's the screencast and instructions for deploying to heroku:

http://www.opensourcecurrency.org/2010/01/oscurrency-heroku-deployment.html

cheers,
tom

gargi devi

unread,
Jan 26, 2010, 7:39:16 PM1/26/10
to opensourc...@googlegroups.com
thanks!

--
You received this message because you are subscribed to the Google Groups "opensourcecurrency" group.
To post to this group, send email to opensourc...@googlegroups.com.
To unsubscribe from this group, send email to opensourcecurre...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opensourcecurrency?hl=en.




--
God Bless You
Reply all
Reply to author
Forward
0 new messages