Hi, Locally my application is 7MB without tests and logs, etc. The .git folder is 29 MB. I also have no gems / plugins in vendor folder. 95% of images sit on S3. However on committing to Heroku it shows -----> Compiled slug size is 62.7MB What is wrong? It happened? To add more context my .gitignore file is .bundle, db/.sqlite3, config/ database.yml, log/.log, tmp/, .idea, .redcar, .sass-cache/, multi_xml/, test/, doc/ Please advice -- 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.
Make sure that you include a .slugignore file (similar to .gitignore, but for heroku) and that you do not include development and test gems (this is automatic on cedar, on the other stacks you need to add this manually). On Fri, Sep 23, 2011 at 11:04 PM, UA <ritvij.j-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > Locally my application is 7MB without tests and logs, etc. The .git > folder is 29 MB. I also have no gems / plugins in vendor folder. 95% > of images sit on S3. However on committing to Heroku it shows -----> > Compiled slug size is 62.7MB > > What is wrong? It happened? > > To add more context my .gitignore file is .bundle, db/.sqlite3, config/ > database.yml, log/.log, tmp/, .idea, .redcar, .sass-cache/, > multi_xml/, test/, doc/ > > Please advice > > -- > 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.
Thank you Martin, My GemFile puts all dev gems within Dev section group :development do gem ''silent-postgres'' gem ''hirb'' gem ''wirble'' gem ''crack'' gem ''ap'' end About Slugignore, I gitignored all items which are to be slugignored. Does it not solve the problem? Plus there are no plugins/gems in my vendor folder, the total size of my app in local directory without .git is 7MB. On Sep 24, 11:11 am, Martin Wawrusch <mar...-qs6+VQBngv1Wk0Htik3J/w@public.gmane.org> wrote:> Make sure that you include a .slugignore file (similar to .gitignore, but > for heroku) and that you do not include development and test gems (this is > automatic on cedar, on the other stacks you need to add this manually). > > > > > > > > On Fri, Sep 23, 2011 at 11:04 PM, UA <ritvi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > > > Locally my application is 7MB without tests and logs, etc. The .git > > folder is 29 MB. I also have no gems / plugins in vendor folder. 95% > > of images sit on S3. However on committing to Heroku it shows -----> > > Compiled slug size is 62.7MB > > > What is wrong? It happened? > > > To add more context my .gitignore file is .bundle, db/.sqlite3, config/ > > database.yml, log/.log, tmp/, .idea, .redcar, .sass-cache/, > > multi_xml/, test/, doc/ > > > Please advice > > > -- > > 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
You need to make sure that bundle (on heroku) does not include the development and test gems. run "heroku config" and look for a BUNDLE_WITHOUT line that should contain development:test If not then execute the following command: heroku config:add BUNDLE_WITHOUT="development:test" slugignore is useful to exclude assets like psd''s that live in your git but should not be part of slug. Also some of the less common gems count to your slug size even if they are not in your vendor directory. If you include gems through :git => they also automatically add to your slug size. To give you a ballpark figure: My sites have a slugsize of about 50 to 60 meg on cedar on average. If you run on cedar make sure you do not include therubyracer gem but instead use the built in node.js (see here for details: http://devcenter.heroku.com/articles/rails31_heroku_cedar) On Fri, Sep 23, 2011 at 11:18 PM, UA <ritvij.j-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thank you Martin, > > My GemFile puts all dev gems within Dev section > group :development do > gem ''silent-postgres'' > gem ''hirb'' > gem ''wirble'' > gem ''crack'' > gem ''ap'' > end > > About Slugignore, I gitignored all items which are to be slugignored. > Does it not solve the problem? > > Plus there are no plugins/gems in my vendor folder, the total size of > my app in local directory without .git is 7MB. > > On Sep 24, 11:11 am, Martin Wawrusch <mar...-qs6+VQBngv1Wk0Htik3J/w@public.gmane.org> wrote: > > Make sure that you include a .slugignore file (similar to .gitignore, but > > for heroku) and that you do not include development and test gems (this > is > > automatic on cedar, on the other stacks you need to add this manually). > > > > > > > > > > > > > > > > On Fri, Sep 23, 2011 at 11:04 PM, UA <ritvi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > > > Locally my application is 7MB without tests and logs, etc. The .git > > > folder is 29 MB. I also have no gems / plugins in vendor folder. 95% > > > of images sit on S3. However on committing to Heroku it shows -----> > > > Compiled slug size is 62.7MB > > > > > What is wrong? It happened? > > > > > To add more context my .gitignore file is .bundle, db/.sqlite3, config/ > > > database.yml, log/.log, tmp/, .idea, .redcar, .sass-cache/, > > > multi_xml/, test/, doc/ > > > > > Please advice > > > > > -- > > > 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-/JYPxA39Uh5TLH3MbocFFw@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. > >-- 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.
Thanks a lot Martin. Only Aspen stack has preinstalled gems. (http:// installed-gems.heroku.com/) Bamboo and Cedar dont. Hence my slug is high. I need to reduce my gems. On Sep 24, 11:29 am, Martin Wawrusch <mar...-qs6+VQBngv1Wk0Htik3J/w@public.gmane.org> wrote:> You need to make sure that bundle (on heroku) does not include the > development and test gems. > run "heroku config" and look for a BUNDLE_WITHOUT line that should contain > development:test > > If not then execute the following command: > > heroku config:add BUNDLE_WITHOUT="development:test" > > slugignore is useful to exclude assets like psd''s that live in your git but > should not be part of slug. Also some of the less common gems count to your > slug size even if they are not in your vendor directory. If you include gems > through :git => they also automatically add to your slug size. > > To give you a ballpark figure: My sites have a slugsize of about 50 to 60 > meg on cedar on average. > > If you run on cedar make sure you do not include therubyracer gem but > instead use the built in node.js (see here for details:http://devcenter.heroku.com/articles/rails31_heroku_cedar) > > > > > > > > On Fri, Sep 23, 2011 at 11:18 PM, UA <ritvi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Thank you Martin, > > > My GemFile puts all dev gems within Dev section > > group :development do > > gem ''silent-postgres'' > > gem ''hirb'' > > gem ''wirble'' > > gem ''crack'' > > gem ''ap'' > > end > > > About Slugignore, I gitignored all items which are to be slugignored. > > Does it not solve the problem? > > > Plus there are no plugins/gems in my vendor folder, the total size of > > my app in local directory without .git is 7MB. > > > On Sep 24, 11:11 am, Martin Wawrusch <mar...-qs6+VQBngv1Wk0Htik3J/w@public.gmane.org> wrote: > > > Make sure that you include a .slugignore file (similar to .gitignore, but > > > for heroku) and that you do not include development and test gems (this > > is > > > automatic on cedar, on the other stacks you need to add this manually). > > > > On Fri, Sep 23, 2011 at 11:04 PM, UA <ritvi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hi, > > > > > Locally my application is 7MB without tests and logs, etc. The .git > > > > folder is 29 MB. I also have no gems / plugins in vendor folder. 95% > > > > of images sit on S3. However on committing to Heroku it shows -----> > > > > Compiled slug size is 62.7MB > > > > > What is wrong? It happened? > > > > > To add more context my .gitignore file is .bundle, db/.sqlite3, config/ > > > > database.yml, log/.log, tmp/, .idea, .redcar, .sass-cache/, > > > > multi_xml/, test/, doc/ > > > > > Please advice > > > > > -- > > > > 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@googlegroups.com > > . > > > > 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.-- 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.
Possibly Parallel Threads
- Why doesn't Heroku show the Rails default page?
- FYI: Heroku Cedar, pg, openssl, omniauth, troubles and a solution
- How do you execute "rails runner" in Heroku?
- access key error
- heroku rake db:drop error PG::Error: FATAL: permission denied for database "postgres"