Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation of deploy #3

Closed
hugobarthelemy opened this issue Oct 15, 2017 · 7 comments
Closed

Documentation of deploy #3

hugobarthelemy opened this issue Oct 15, 2017 · 7 comments

Comments

@hugobarthelemy
Copy link

Hello !

I tried to deploy my code on Heroku but it did not work.

The gem must be added in the Gemfile from the root of the general application or in the Gemfile developement app ?

It must be installed before the bundle exec rake development_app `?

One should push on Heroku the global application or only the development_app?

Thank you

@mrcasals
Copy link
Contributor

Hi @hugobarthelemy!

You need to generate your definitive app with this guide:

https://github.com/decidim/decidim/blob/master/docs/getting_started.md#step-by-step

Once that's done you need to add this gem to the new Rails app:

https://github.com/codegram/decidim-deploy-heroku#usage

I'm closing this issue, if you need more help I'll reopen it :)

@aubryprieur
Copy link

Hello,
Can you help me ? I'm trying to deploy decidim on heroku.
I added the gem "decidim-deploy-heroku" to the gemfile then bundle install and the gem generator, but push failed.

I had warning:
the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.1). We suggest you upgrade to the latest version of Bundler by running gem install bundler.
But gem install bundler didn't work.

And i also:

[!] There was an error while loading `decidim-deploy-heroku.gemspec`: cannot load such file -- rails/generators
remote:        Does it try to require a relative path? That's been removed in Ruby 1.9. Bundler cannot continue.
remote:        #  from /tmp/build_22a87fca774db3f39ac20c9830f30839/vendor/bundle/ruby/2.4.0/bundler/gems/decidim-deploy-heroku-129b23c17e7d/decidim-deploy-heroku.gemspec:5
remote:        #  -------------------------------------------
remote:        #  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
remote:        >  require_relative "lib/decidim/deploy/heroku"
remote:        #
remote:        #  -------------------------------------------

Can you advise me? I'm trying to find solutions, but I can't.

Thank you very much!

@mrcasals
Copy link
Contributor

mrcasals commented Feb 9, 2018

@aubryprieur The warning about bundler is just a warning, you need to upgrade your bundler gem.

What version of Ruby are you using?

@aubryprieur
Copy link

ruby 2.4.2p198

@jluiggi
Copy link

jluiggi commented Nov 14, 2019

Same issue here when pushing to heroku...

remote:         #  -------------------------------------------
remote:        Bundler Output: Fetching gem metadata from https://rubygems.org/.........
remote:        Fetching https://github.com/codegram/decidim-deploy-heroku.git
remote:        
remote:        [!] There was an error while loading `decidim-deploy-heroku.gemspec`: cannot load such file -- rails/generators
remote:        Does it try to require a relative path? That's been removed in Ruby 1.9. Bundler cannot continue.
remote:        
remote:         #  from /tmp/build_13ab3ff6935fbdb1152aa97c6974a76f/vendor/bundle/ruby/2.6.0/bundler/gems/decidim-deploy-heroku-96fb6d89b70f/decidim-deploy-heroku.gemspec:5
remote:         #  -------------------------------------------
remote:         #  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
remote:         >  require_relative "lib/decidim/deploy/heroku"
remote:         #  
remote:         #  -------------------------------------------
remote: 

@mrcasals
Copy link
Contributor

I know I'm super late here, but this gem is not supposed to be deployed to production. I'll update the docs to reflect that this gem should only be used in :development group, and can be removed once used.

@mrcasals
Copy link
Contributor

Closed by 2684552

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants