How to install on localhost

bundle install is going to download several packages from servers outside the GFW. That will take a long time. Last time I tried from inside it took at least two hours.