Giter Club home page Giter Club logo

geminabox-example's Introduction

geminabox-example

This repository demonstrates a minimalistic setup of a geminabox server.

Setup

Begin by cloning this repository and running the "bundle" command to install the dependencies that are specified in the Gemfile:

$ git clone [email protected]:briandamaged/geminabox-example.git
$ cd geminabox-example/
$ bundle

Congratulations! You just installed geminabox! Now launch the server by running the "rackup" command:

$ bundle exec rackup

Due to a quirk in geminabox, you cannot register this server to your "gem" command's source list until after you upload at least one gem. So, let's configure the "gem inabox" command to point to our server:

$ gem inabox -c
Enter the root url for your personal geminabox instance (e.g. http://gems/).
Host:  http://localhost:9292

Next, we'll download a gem from https://rubygems.org and upload it to our server:

$ wget https://rubygems.org/downloads/logbert-0.6.17.gem
$ gem inabox logbert-0.6.17.gem

By uploading this gem, we have forced the server to build its gem indexes. Now it will be possible to register this server in our "gem" command's source list. Let's do that:

$ gem sources -a http://localhost:9292/

Aaaaaaand we're done!

Now what?

At this point, the "gem" command knows how to talk to our server. Gems can be published to the server using the "gem inabox" command:

$ gem inabox holdon-0.1.1.gem

The "gem" command will download gems from our server automatically. That is, if the "gem" command is unable to find a gem on https://rubygems.org, then it will search for the gem on our server:

$ gem install holdon

geminabox-example's People

Contributors

briandamaged avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.