So O have a working 3.1.2 application. I had done a bundle install --deployment Now I want to add nokogiri so I added gem ''nokogiri'' to the Gemfile I then did - - - - c:\RailsInstaller\Sites\ultradedup002> bundle install --deployment You are trying to install in deployment mode after changing your Gemfile. Run `bundle install` elsewhere and add the updated Gemfile.lock to version control. You have added to the Gemfile: * nokogiri c:\RailsInstaller\Sites\ultradedup002> bundle install You are trying to install in deployment mode after changing your Gemfile. Run `bundle install` elsewhere and add the updated Gemfile.lock to version control. If this is a development machine, remove the Gemfile freeze by running `bundle install --no-deployment`. You have added to the Gemfile: * nokogiri c:\RailsInstaller\Sites\ultradedup002> bundle install --no-deployment . . . c:\RailsInstaller\Sites\ultradedup002> bundle install --deployment - - - - What''s going on? Why do I need to go through these contortions? Ralph Shnelvar -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Using deployment mode with bundler requires an up-to-date Gemfile.lock. See here: http://gembundler.com/man/bundle-install.1.html#DEPLOYMENT-MODE On Fri, Dec 30, 2011 at 8:27 PM, Ralph Shnelvar <ralphs-bVGy8FV858MAvxtiuMwx3w@public.gmane.org> wrote:> So O have a working 3.1.2 application. I had done a > bundle install --deployment > > > Now I want to add nokogiri so I added > gem ''nokogiri'' > to the Gemfile > > > > I then did > > - - - - > > c:\RailsInstaller\Sites\ultradedup002> bundle install --deployment > You are trying to install in deployment mode after changing > your Gemfile. Run `bundle install` elsewhere and add the > updated Gemfile.lock to version control. > > You have added to the Gemfile: > * nokogiri > > c:\RailsInstaller\Sites\ultradedup002> bundle install > You are trying to install in deployment mode after changing > your Gemfile. Run `bundle install` elsewhere and add the > updated Gemfile.lock to version control. > > If this is a development machine, remove the Gemfile freeze > by running `bundle install --no-deployment`. > > You have added to the Gemfile: > * nokogiri > > c:\RailsInstaller\Sites\ultradedup002> bundle install --no-deployment > . > . > . > > c:\RailsInstaller\Sites\ultradedup002> bundle install --deployment > > - - - - > > > What''s going on? Why do I need to go through these contortions? > > Ralph Shnelvar > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
The machine where you run bundle --deployment, is that a development machine or a deployment machine?? because on http://gembundler.com/ it states Deploying Your Application On production servers, you can enable deployment mode: $ bundle install --deployment Do *not* use this flag on development machines. The --deployment flag turns on defaults that are appropriate for a deployment environment. Gems are installed to vendor/bundle and the Gemfile.lock must be checked in and up to date before Bundler is run. This is how i do it.. After i create the rails app i run *bundle install* then run, *bundle package* which vendors the gems. Now anytime i need to add any new gem I add it to the Gemfile and run ''bundle install'' which installs the gem and vendors it too. At the top of my ''*deploy.rb*'' file i have *require "bundler/capistrano"*which handles deployment automatically. This just works for me. Gautam Pai On Sat, Dec 31, 2011 at 6:57 AM, Ralph Shnelvar <ralphs-bVGy8FV858MAvxtiuMwx3w@public.gmane.org> wrote:> So O have a working 3.1.2 application. I had done a > bundle install --deployment > > > Now I want to add nokogiri so I added > gem ''nokogiri'' > to the Gemfile > > > > I then did > > - - - - > > c:\RailsInstaller\Sites\ultradedup002> bundle install --deployment > You are trying to install in deployment mode after changing > your Gemfile. Run `bundle install` elsewhere and add the > updated Gemfile.lock to version control. > > You have added to the Gemfile: > * nokogiri > > c:\RailsInstaller\Sites\ultradedup002> bundle install > You are trying to install in deployment mode after changing > your Gemfile. Run `bundle install` elsewhere and add the > updated Gemfile.lock to version control. > > If this is a development machine, remove the Gemfile freeze > by running `bundle install --no-deployment`. > > You have added to the Gemfile: > * nokogiri > > c:\RailsInstaller\Sites\ultradedup002> bundle install --no-deployment > . > . > . > > c:\RailsInstaller\Sites\ultradedup002> bundle install --deployment > > - - - - > > > What''s going on? Why do I need to go through these contortions? > > Ralph Shnelvar > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Re[2]: [Rails] bundle --deployment &
--no-deployment</title>
<META http-equiv=Content-Type content="text/html;
charset=iso-8859-1">
<meta http-equiv="Content-Style-Type"
content="text/css">
<style type="text/css"><!--
body {
  margin: 5px 5px 5px 5px;
  background-color: #ffffff;
}
/* ========== Text Styles ========== */
hr { color: #000000}
body, table /* Normal text */
{
 font-size: 9pt;
 font-family: ''Courier New'';
 font-style: normal;
 font-weight: normal;
 color: #000000;
 text-decoration: none;
}
span.rvts1 /* Heading */
{
 font-size: 10pt;
 font-family: ''Arial'';
 font-weight: bold;
 color: #0000ff;
}
span.rvts2 /* Subheading */
{
 font-size: 10pt;
 font-family: ''Arial'';
 font-weight: bold;
 color: #000080;
}
span.rvts3 /* Keywords */
{
 font-size: 10pt;
 font-family: ''Arial'';
 font-style: italic;
 color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
 font-size: 10pt;
 font-family: ''Arial'';
 color: #008000;
 text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
 font-size: 10pt;
 font-family: ''Arial'';
 color: #008000;
 text-decoration: underline;
}
span.rvts6
{
 font-size: 8pt;
 font-family: ''segoe ui'';
}
a.rvts7, span.rvts7
{
 font-size: 8pt;
 font-family: ''segoe ui'';
 color: #0000ff;
 background-color: #ffffff;
 text-decoration: underline;
}
span.rvts8
{
 font-size: 18pt;
 font-family: ''segoe ui'';
 font-weight: bold;
}
span.rvts9
{
 font-size: 8pt;
}
span.rvts10
{
 font-size: 8pt;
 font-family: ''segoe ui'';
 font-weight: bold;
}
span.rvts11
{
 font-size: 8pt;
 font-family: ''segoe ui'';
 font-weight: bold;
 background-color: #ffffff;
}
a.rvts12, span.rvts12
{
 font-size: 8pt;
 font-family: ''segoe ui'';
 color: #0000ff;
 text-decoration: underline;
}
span.rvts13
{
 font-size: 8pt;
 font-family: ''segoe ui'';
 color: #888888;
}
a.rvts14, span.rvts14
{
 font-size: 8pt;
 font-family: ''segoe ui'';
 color: #888888;
 text-decoration: underline;
}
span.rvts15
{
 font-size: 8pt;
 font-family: ''arial'';
 font-style: italic;
 color: #c0c0c0;
}
a.rvts16, span.rvts16
{
 font-size: 8pt;
 font-family: ''arial'';
 color: #0000ff;
 text-decoration: underline;
}
/* ========== Para Styles ========== */
p,ul,ol /* Paragraph Style */
{
 text-align: left;
 text-indent: 0px;
 padding: 0px 0px 0px 0px;
 margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
 text-align: center;
}
--></style>
</head>
<body>
<p>Saturday, December 31, 2011, 3:24:37 AM, you wrote:</p>
<p><br></p>
<p>I am so lost.</p>
<p><br></p>
<p>I''m trying to deploy to Heroku and I am very unfamiliar with
procedures for it.</p>
<p><br></p>
<p>Am I even able to do a bundle whatever on the server they
provide?</p>
<p><br></p>
<p><br></p>
<p><br></p>
<div><a name="deploying-your-application"></a>
<table border=0 cellpadding=1 cellspacing=2 style="background-color:
#ffffff;">
<tr valign=top>
<td width=2 style="background-color: #0000ff;"><br>
</td>
<td width=1467>
<p><span class=rvts6>The machine where you run bundle --deployment,
is that a development machine or a deployment machine?? because
on </span><a class=rvts7
href="http://gembundler.com/">http://gembundler.com/</a><span
class=rvts6> it states</span></p>
<p><br></p>
<p><br></p>
<p><span class=rvts8>Deploying Your
Application </span></p>
<p><span class=rvts6>On production servers, you can enable
deployment mode: </span></p>
<p><span class=rvts9>$ bundle install
--deployment</span></p>
<p><span class=rvts6>Do </span><span
class=rvts10>not</span><span class=rvts6> use this flag
on development machines. The --deployment flag turns on defaults that are
appropriate for a deployment environment. Gems are installed to vendor/bundle
and the Gemfile.lock must be checked in and up to date before Bundler is
run. </span></p>
<p><br></p>
<p><br></p>
<p><span class=rvts6>This is how i do it..</span></p>
<p><br></p>
<p><span class=rvts6>After i create the rails app i
run</span></p>
<p><br></p>
<p><span class=rvts11>bundle install</span></p>
<p><br></p>
<p><span class=rvts6>then run,</span></p>
<p><br></p>
<p><span class=rvts11>bundle package</span></p>
<p><br></p>
<p><span class=rvts6>which vendors the gems. Now anytime i need to
add any new gem I add it to the Gemfile and run ''bundle
install'' which installs the gem and vendors it
too.</span></p>
<p><br></p>
<p><span class=rvts6>At the top of my
''</span><span class=rvts11>deploy.rb</span><span
class=rvts6>'' file i have </span><span
class=rvts11>require "bundler/capistrano"</span><span
class=rvts6> which handles deployment
automatically.</span></p>
<p><br></p>
<p><span class=rvts6>This just works for me.</span></p>
<p><br></p>
<p><span class=rvts6>Gautam Pai</span></p>
<p><br></p>
<p><br></p>
<p><span class=rvts6>On Sat, Dec 31, 2011 at 6:57 AM, Ralph Shnelvar
<</span><a class=rvts12
href="mailto:ralphs-bVGy8FV858MAvxtiuMwx3w@public.gmane.org">ralphs-bVGy8FV858MAvxtiuMwx3w@public.gmane.org</a><span
class=rvts6>> wrote:</span></p>
<p><br></p>
<p><span class=rvts6>So O have a working 3.1.2 application.
 I had done a</span></p>
<p><span class=rvts6> bundle install
--deployment</span></p>
<p><br></p>
<p><br></p>
<p><span class=rvts6>Now I want to add nokogiri so I
added</span></p>
<p><span class=rvts6> gem
''nokogiri''</span></p>
<p><span class=rvts6>to the Gemfile</span></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><span class=rvts6>I then did</span></p>
<p><br></p>
<p><span class=rvts6>- - - -</span></p>
<p><br></p>
<p><span class=rvts6>c:\RailsInstaller\Sites\ultradedup002>
bundle install --deployment</span></p>
<p><span class=rvts6>You are trying to install in deployment mode
after changing</span></p>
<p><span class=rvts6>your Gemfile. Run `bundle install` elsewhere
and add the</span></p>
<p><span class=rvts6>updated Gemfile.lock to version
control.</span></p>
<p><br></p>
<p><span class=rvts6>You have added to the
Gemfile:</span></p>
<p><span class=rvts6>* nokogiri</span></p>
<p><br></p>
<p><span class=rvts6>c:\RailsInstaller\Sites\ultradedup002>
bundle install</span></p>
<p><span class=rvts6>You are trying to install in deployment mode
after changing</span></p>
<p><span class=rvts6>your Gemfile. Run `bundle install` elsewhere
and add the</span></p>
<p><span class=rvts6>updated Gemfile.lock to version
control.</span></p>
<p><br></p>
<p><span class=rvts6>If this is a development machine, remove the
Gemfile freeze</span></p>
<p><span class=rvts6>by running `bundle install
--no-deployment`.</span></p>
<p><br></p>
<p><span class=rvts6>You have added to the
Gemfile:</span></p>
<p><span class=rvts6>* nokogiri</span></p>
<p><br></p>
<p><span class=rvts6>c:\RailsInstaller\Sites\ultradedup002>
bundle install --no-deployment</span></p>
<p><span class=rvts6>.</span></p>
<p><span class=rvts6>.</span></p>
<p><span class=rvts6>.</span></p>
<p><br></p>
<p><span class=rvts6>c:\RailsInstaller\Sites\ultradedup002>
bundle install --deployment</span></p>
<p><br></p>
<p><span class=rvts6>- - - -</span></p>
<p><br></p>
<p><br></p>
<p><span class=rvts6>What''s going on?  Why do I
need to go through these contortions?</span></p>
<p><br></p>
<p><span class=rvts13>Ralph Shnelvar</span></p>
<p><br></p>
<p><span class=rvts13>--</span></p>
<p><span class=rvts13>You received this message because you are
subscribed to the Google Groups "Ruby on Rails: Talk"
group.</span></p>
<p><span class=rvts13>To post to this group, send email
to </span><a class=rvts14
href="mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org">rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org</a><span
class=rvts13>.</span></p>
<p><span class=rvts13>To unsubscribe from this group, send email
to </span><a class=rvts14
href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com">rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org</a><span
class=rvts13>.</span></p>
<p><span class=rvts13>For more options, visit this group
at </span><a class=rvts14
href="http://groups.google.com/group/rubyonrails-talk?hl=en">http://groups.google.com/group/rubyonrails-talk?hl=en</a><span
class=rvts13>.</span></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><span class=rvts6>-- </span></p>
<p><span class=rvts6>You received this message because you are
subscribed to the Google Groups "Ruby on Rails: Talk"
group.</span></p>
<p><span class=rvts6>To post to this group, send email to
rubyonrails-talk@googlegroups.com.</span></p>
<p><span class=rvts6>To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org</span></p>
<p><span class=rvts6>For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.</span></p>
</td>
</tr>
</table>
</div>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><span class=rvts15>-- </span></p>
<p><span class=rvts15>Best regards,</span></p>
<p><span class=rvts15> Ralph    
             
         </span><a
class=rvts16
href="mailto:ralphs-bVGy8FV858MAvxtiuMwx3w@public.gmane.org">mailto:ralphs-bVGy8FV858MAvxtiuMwx3w@public.gmane.org</a></p>
</body></html>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.<br />
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org<br />
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.<br />
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.<br />
On Sat, Dec 31, 2011 at 5:31 AM, Ralph Shnelvar <ralphs-bVGy8FV858MAvxtiuMwx3w@public.gmane.org> wrote:> I''m trying to deploy to Heroku and I am very unfamiliar with procedures for it.Have you read their instructions? It''s really pretty simple.> Am I even able to do a bundle whatever on the server they provide?You don''t need to; Heroku uses your Gemfile to make the required gems available to the app at deployment. -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan,>> Am I even able to do a bundle whatever on the server they provide?HS> You don''t need to; Heroku uses your Gemfile to make the required HS> gems available to the app at deployment. Dear God! One sentence and "everything" snaps into focus. Thank you! Question: Does that mean I can''t add more gems to the gemfile when I do the next upload? If I need to fix one .rb file (or whatever), do I have to upload the entire app? I have sooo many questions. For instance, will Heroku, for a fee, be my ISP for the app? That is, will they host my app and my url: www.ultradedup.com? Ralph -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sat, Dec 31, 2011 at 10:18 AM, Ralph Shnelvar <ralphs-bVGy8FV858MAvxtiuMwx3w@public.gmane.org> wrote:> Question: Does that mean I can''t add more gems to the gemfile when I do the next upload?No, each deployment reads the Gemfile and loads what it needs.> If I need to fix one .rb file (or whatever), do I have to upload the entire app?Sure, but it''s just `git push heroku master` and wait a minute -- not a big deal. Though for quick deployments *anywhere* it''s a good idea to separate out large assets (images, video, sound) to some cloud storage provider (e.g. AWS S3).> I have sooo many questions. > > For instance, will Heroku, for a fee, be my ISP for the app? That is, will they host my app and my url: www.ultradedup.com?That''s exactly their business, yes :-) -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan, Saturday, December 31, 2011, 11:27:29 AM, you wrote: HS> On Sat, Dec 31, 2011 at 10:18 AM, Ralph Shnelvar <ralphs-bVGy8FV858MAvxtiuMwx3w@public.gmane.org> wrote:>> Question: Does that mean I can''t add more gems to the gemfile when I do the next upload?HS> No, each deployment reads the Gemfile and loads what it needs.>> If I need to fix one .rb file (or whatever), do I have to upload the entire app?HS> Sure, but it''s just `git push heroku master` and wait a minute -- not a HS> big deal. Though for quick deployments *anywhere* it''s a good idea HS> to separate out large assets (images, video, sound) to some cloud HS> storage provider (e.g. AWS S3). jw_player needs to have videos somewhere in public. Can a link to cloud storage be placed there? I am a complete noobie when it comes to cloud stuff and heroku. Ralph Shnelvar -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sat, Dec 31, 2011 at 2:18 PM, Ralph Shnelvar <ralphs-bVGy8FV858MAvxtiuMwx3w@public.gmane.org> wrote:> jw_player needs to have videos somewhere in public. > > Can a link to cloud storage be placed there? I am a complete noobie when it comes to cloud stuff and heroku.This has nothing to do with Heroku specifically. I''ve never used fw_player, but a quick glance at the docs shows it (apparently) accepts a URL as a ''file'' argument. Easiest way to find out is try it. Create an Amazon S3 account and upload a video file to it; put that URL in a page on your development machine. When it works there, it''ll work anywhere :-) -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.