<instructions>Your goal is to analyze the following comment and estimate how highly it will be upvoted by the Hacker News community.</instructions><comment><author>sync</author><text>Interesting.&lt;p&gt;Without making any modifications to your app I have it working on heroku: &lt;a href=&quot;http://safe-harbor-9177.herokuapp.com&quot; rel=&quot;nofollow&quot;&gt;http://safe-harbor-9177.herokuapp.com&lt;/a&gt;&lt;p&gt;Here&apos;s the full output: &lt;a href=&quot;https://gist.github.com/speedmanly/1099b37338745ccb5a26&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/speedmanly/1099b37338745ccb5a26&lt;/a&gt;&lt;p&gt;Adding a Procfile is generally recommended (although heroku will add a default one)&lt;p&gt;&lt;pre&gt;&lt;code&gt;   web: bundle exec rails server thin -p $PORT -e $RACK_ENV
&lt;/code&gt;&lt;/pre&gt;
Setting your rails env is a good idea too:&lt;p&gt;&lt;pre&gt;&lt;code&gt;   heroku config:add RAILS_ENV=production
&lt;/code&gt;&lt;/pre&gt;
Note I didn&apos;t perform those steps to get the app running, they are just recommended.&lt;p&gt;Edit: Actually I do see this line in my heroku logs:&lt;p&gt;&lt;pre&gt;&lt;code&gt;   2013-03-21T00:50:21+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 32752 -e $RAILS_ENV`
   2013-03-21T00:50:22+00:00 app[web.1]: bash: bin/rails: No such file or directory

&lt;/code&gt;&lt;/pre&gt;
Adding a Procfile should fix that. Listing &apos;thin&apos; (or another rails server, e.g. unicorn,puma) in your Gemfile is a good practice as well.</text><parent_chain><item><author>mhartl</author><text>Even with an explicit Ruby line in the Gemfile, I get this error:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    $ heroku logs
    .
    .
    .
    heroku[slugc]: Slug compilation failed: unrecognized error
&lt;/code&gt;&lt;/pre&gt;
Here&apos;s the Gemfile:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    source &apos;https://rubygems.org&apos;
    ruby &apos;2.0.0&apos;

    gem &apos;rails&apos;, &apos;4.0.0.beta1&apos;

    group :development do
      gem &apos;sqlite3&apos;, &apos;1.3.7&apos;
    end

    group :assets do
      gem &apos;sass-rails&apos;,   &apos;4.0.0.beta1&apos;
      gem &apos;coffee-rails&apos;, &apos;4.0.0.beta1&apos;
      gem &apos;uglifier&apos;, &apos;1.0.3&apos;
    end

    gem &apos;jquery-rails&apos;, &apos;2.2.1&apos;
    gem &apos;turbolinks&apos;, &apos;1.0.0&apos;
    gem &apos;jbuilder&apos;, &apos;1.0.1&apos;

    group :production do
      gem &apos;pg&apos;, &apos;0.14.1&apos;
    end
&lt;/code&gt;&lt;/pre&gt;
The app is the &quot;first_app&quot; from the book, which is basically the result of running &quot;rails new first_app&quot; plus a slightly modified Gemfile. The full repo is here: &lt;a href=&quot;https://github.com/mhartl/first_app&quot; rel=&quot;nofollow&quot;&gt;https://github.com/mhartl/first_app&lt;/a&gt;. Any help in getting it to work on Heroku would be much appreciated.</text></item><item><author>sync</author><text>&lt;p&gt;&lt;pre&gt;&lt;code&gt;   Finally, as far as I can tell Rails 4 doesn’t yet work on Heroku,
   so all the deployment examples currently fail.
&lt;/code&gt;&lt;/pre&gt;
Rails 4 definitely works on heroku, what problems are you seeing?&lt;p&gt;Edit: You may be missing &quot;ruby &apos;2.0.0&apos;&quot; or &quot;ruby &apos;1.9.3&apos;&quot; in your Gemfile, as seen in: &lt;a href=&quot;https://gist.github.com/speedmanly/d15a3a5f8d0971bc0c92&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/speedmanly/d15a3a5f8d0971bc0c92&lt;/a&gt;</text></item></parent_chain></comment><story><title>The Ruby on Rails Tutorial for Rails 4.0 (beta)</title><url>http://news.railstutorial.org/ruby-on-rails-tutorial-rails-4-beta/</url><text></text></story>
<instructions>Your goal is to analyze the following comment and estimate how highly it will be upvoted by the Hacker News community.</instructions><comment><author>ninthfrank07</author><text>Try following these instructions: &lt;a href=&quot;https://gist.github.com/peter/3025502&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/peter/3025502&lt;/a&gt;.</text><parent_chain><item><author>mhartl</author><text>Even with an explicit Ruby line in the Gemfile, I get this error:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    $ heroku logs
    .
    .
    .
    heroku[slugc]: Slug compilation failed: unrecognized error
&lt;/code&gt;&lt;/pre&gt;
Here&apos;s the Gemfile:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    source &apos;https://rubygems.org&apos;
    ruby &apos;2.0.0&apos;

    gem &apos;rails&apos;, &apos;4.0.0.beta1&apos;

    group :development do
      gem &apos;sqlite3&apos;, &apos;1.3.7&apos;
    end

    group :assets do
      gem &apos;sass-rails&apos;,   &apos;4.0.0.beta1&apos;
      gem &apos;coffee-rails&apos;, &apos;4.0.0.beta1&apos;
      gem &apos;uglifier&apos;, &apos;1.0.3&apos;
    end

    gem &apos;jquery-rails&apos;, &apos;2.2.1&apos;
    gem &apos;turbolinks&apos;, &apos;1.0.0&apos;
    gem &apos;jbuilder&apos;, &apos;1.0.1&apos;

    group :production do
      gem &apos;pg&apos;, &apos;0.14.1&apos;
    end
&lt;/code&gt;&lt;/pre&gt;
The app is the &quot;first_app&quot; from the book, which is basically the result of running &quot;rails new first_app&quot; plus a slightly modified Gemfile. The full repo is here: &lt;a href=&quot;https://github.com/mhartl/first_app&quot; rel=&quot;nofollow&quot;&gt;https://github.com/mhartl/first_app&lt;/a&gt;. Any help in getting it to work on Heroku would be much appreciated.</text></item><item><author>sync</author><text>&lt;p&gt;&lt;pre&gt;&lt;code&gt;   Finally, as far as I can tell Rails 4 doesn’t yet work on Heroku,
   so all the deployment examples currently fail.
&lt;/code&gt;&lt;/pre&gt;
Rails 4 definitely works on heroku, what problems are you seeing?&lt;p&gt;Edit: You may be missing &quot;ruby &apos;2.0.0&apos;&quot; or &quot;ruby &apos;1.9.3&apos;&quot; in your Gemfile, as seen in: &lt;a href=&quot;https://gist.github.com/speedmanly/d15a3a5f8d0971bc0c92&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/speedmanly/d15a3a5f8d0971bc0c92&lt;/a&gt;</text></item></parent_chain></comment><story><title>The Ruby on Rails Tutorial for Rails 4.0 (beta)</title><url>http://news.railstutorial.org/ruby-on-rails-tutorial-rails-4-beta/</url><text></text></story>