Re: app keep winding down

2010-02-17 Thread Glenn Rempe
I am using Compass with several apps on Heroku.  Compass compiles the
stylesheets (.css) to public/stylesheets/compiled for me and what I
have done is to check those compiled CSS output files into my Git repo
that gets pushed to Heroku.

I did not have to specifically modify the config at all to work on
Heroku.  I initially setup and configured compass using the scripts
provided here:

http://wiki.github.com/chriseppstein/compass/ruby-on-rails-integration

HTH

G

On Feb 17, 9:34 am, sslguy  wrote:
> Thanks for the response. So I'm thinking I should disable compass. Has
> anyone gotten compass to work on Heroku?
>
> On Feb 16, 9:13 pm, bdeank  wrote:
>
>
>
> > Looks like compass is trying to recompile your stylesheets, and can't
> > because Heroku FS is read-only.
>
> > On Feb 16, 8:54 pm, sslguy  wrote:
>
> > > Here is what I was able to pull from the logs immediately following a
> > > 500 error:
>
> > > ==> dyno-878231.log <==
> > > config.gem: Unpacked gem environment.rb in vendor/gems has no
> > > specification file. Run 'rake gems:refresh_specs' to fix this.
> > > config.gem: Unpacked gem environment.rb in vendor/gems not in a
> > > versioned directory. Giving up.
> > > config.gem: Unpacked gem ruby in vendor/gems has no specification
> > > file. Run 'rake gems:refresh_specs' to fix this.
> > > config.gem: Unpacked gem ruby in vendor/gems not in a versioned
> > > directory. Giving up.
>
> > > ==> production.log <==
> > > # Logfile created on Tue Feb 16 17:50:59 -0800 2010
>
> > > Processing ApplicationController#new (for 98.201.58.81 at 2010-02-16
> > > 17:51:00) [GET]
>
> > > Errno::EROFS (Read-only file system - /disk1/home/slugs/
> > > 129005_3d87b71_003c/mnt/public/stylesheets/compiled/ie.css - Heroku
> > > has a read-only filesystem.  
> > > Seehttp://docs.heroku.com/constraints#read-only-filesystem):
> > >   haml (2.2.3) rails/./lib/sass/plugin.rb:79:in `delete'
> > >   haml (2.2.3) rails/./lib/sass/plugin.rb:79:in `update_stylesheet'
> > >   haml (2.2.3) rails/./lib/sass/plugin.rb:69:in `update_stylesheets'
> > >   haml (2.2.3) rails/./lib/sass/plugin.rb:64:in `each'
> > >   haml (2.2.3) rails/./lib/sass/plugin.rb:64:in `update_stylesheets'
> > >   haml (2.2.3) rails/./lib/sass/plugin.rb:62:in `each'
> > >   haml (2.2.3) rails/./lib/sass/plugin.rb:62:in `update_stylesheets'
> > >   haml (2.2.3) rails/./lib/sass/plugin/rails.rb:16:in
> > > `process_without_compass'
> > >   /home/slugs/129005_3d87b71_003c/mnt/.gems/gems/chriseppstein-
> > > compass-0.8.17/lib/compass/app_integration/rails/action_controller.rb:
> > > 7:in `process'
> > >   /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'
> > >   thin (1.0.1) lib/thin/connection.rb:80:in `pre_process'
> > >   thin (1.0.1) lib/thin/connection.rb:78:in `catch'
> > >   thin (1.0.1) lib/thin/connection.rb:78:in `pre_process'
> > >   thin (1.0.1) lib/thin/connection.rb:57:in `process'
> > >   thin (1.0.1) lib/thin/connection.rb:42:in `receive_data'
> > >   eventmachine (0.12.6) lib/eventmachine.rb:240:in `run_machine'
> > >   eventmachine (0.12.6) lib/eventmachine.rb:240:in `run'
> > >   thin (1.0.1) lib/thin/backends/base.rb:57:in `start'
> > >   thin (1.0.1) lib/thin/server.rb:150:in `start'
> > >   thin (1.0.1) lib/thin/controllers/controller.rb:80:in `start'
> > >   thin (1.0.1) lib/thin/runner.rb:173:in `send'
> > >   thin (1.0.1) lib/thin/runner.rb:173:in `run_command'
> > >   thin (1.0.1) lib/thin/runner.rb:139:in `run!'
> > >   thin (1.0.1) bin/thin:6
> > >   /usr/local/bin/thin:20:in `load'
> > >   /usr/local/bin/thin:20
>
> > > Rendering /disk1/home/slugs/129005_3d87b71_003c/mnt/public/500.html
> > > (500 Internal Server Error)
>
> > > Any ideas?
>
> > > On Feb 16, 12:42 am, Pedro Belo  wrote:
>
> > > > Do you see anything by running heroku logs?
> > > > 500s are caused by the application, so you should find the source of
> > > > it in the logs.
>
> > > > On Mon, Feb 15, 2010 at 9:32 PM, sslguy  wrote:
> > > > > Looks like the problem still exists :(
>
> > > > > On Feb 15, 4:42 pm, sslguy  wrote:
> > > > >> Thanks for your prompt response. I'll check back in a while to see if
> > > > >> the 500 error resurfaces.
>
> > > > >> On Feb 15, 11:14 am, Oren Teich  wrote:
>
> > > > >> > While free apps do cycle down after a few hours of inactivity, you 
> > > > >> > should
> > > > >> > never get a 500 error.  That's something we'll have to look into.
>
> > > > >> > Oren
>
> > > > >> > 2010/2/15 Nicolás Sanguinetti 
>
> > > > >> > > On Mon, Feb 15, 2010 at 2:15 PM, sslguy 
> > > > >> > >  wrote:
> > > > >> > > > Any idea why my app ssltools.com keeps winding down. When I 
> > > > >> > > > visit the
> > > > >> > > > site, I at first get an error code 500. Upon immediate 
> > > > >> > > > refresh, the
> > > > >> > > > app comes up. However, wait a period of time, and Heroku shuts 
> > > > >> > > > the app
> > > > >> > > > down. Then the c

Re: gem bundler support

2010-02-03 Thread Glenn Rempe
Hi Adam,

Can you comment on which version of bundler you are using within
heroku?  I see that bundler v. 0.9.0 was just officially released and
I noticed that there are some significant changes to the user
experience, but I don't know if that changes how the Gemfile will be
interpreted by Heroku.

Also, do you support gems bundled in the Gemfile that reference a git
repo as opposed to a gemcutter gem?

e.g. gem "rails", :git => "git://github.com/rails/rails.git"

I'd like to push an edge rails (Rails 3.0.0.beta) app to heroku and
was wondering what issues you foresee if any.

Thanks,

Glenn

On Jan 19, 4:52 pm, Adam Wiggins  wrote:
> Gem Bundler is rapidly on its way to becoming the new community
> standard for managing gem dependencies in Ruby apps. Bundler is the
> default gem manager forRails3, but it will also work seamlessly with
> any other web framework (or no framework) since it has no dependencies
> itself.
>
> Using it is as simple as creating a Gemfile in the root of your app:
>
> gem 'sinatra', '0.9.4'
> gem 'haml', '2.2.17'
>
> …and running “gem bundle” at the command line, which sets up all of
> your gems in vendor/gems.
>
> Heroku now has native support for gem bundler. If you push up a repo
> that has a Gemfile it its root, the slug compiler will bundle your
> gems automatically. (You can use this in addition to, or instead of,
> the .gems manifest. Both will be supported for the foreseeable future,
> so you needn’t feel pressured to
> switch.) Docs here:
>
> http://docs.heroku.com/gems#gem-bundler
>
> The Ruby community has been in need of a simple, standard,
> dependency-free gem dependency manager for a long time. Cheers to
> Yehuda Katz, Carl Lerche, and everyone else involved with bundler for
> delivering this elegant solution!

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