Bundle install not working offline

前端 未结 3 1171
抹茶落季
抹茶落季 2021-02-14 14:45

I got this issue. I think got bundler installed. And since than I am not able to bundle install while creating app in RoR, or bundle install direct within the project. Kindly he

相关标签:
3条回答
  • 2021-02-14 14:57

    You will need to be online so that bundler can check with rubygems that you have the latest gems and download them if necessary.

    0 讨论(0)
  • 2021-02-14 15:08

    The following method works for me.

    $ rails new blog -B # -B tells rails not to run bundle install
    cd blog
    $ bundle install --local
    Edit the GemFile and uncomment the line "therubyracer"
    $ rails server
    => Booting WEBrick
    => Rails 4.0.0 application starting in development on http://0.0.0.0:3000
    => Run `rails server -h` for more startup options
    => Ctrl-C to shutdown server
    [2013-09-28 19:09:35] INFO  WEBrick 1.3.1
    [2013-09-28 19:09:35] INFO  ruby 2.0.0 (2013-05-14) [i686-linux]
    [2013-09-28 19:09:35] INFO  WEBrick::HTTPServer#start: pid=1635 port=3000
    
    0 讨论(0)
  • 2021-02-14 15:23

    If you have your gems installed, you can use bundle install --local. It is not require internet connection

    0 讨论(0)
提交回复
热议问题