Giter VIP home page Giter VIP logo

masquito's Introduction

Masquito

This gem is for DNS masquerading for rubists. Everyone knows Pow, but what I really don't like that it uses node.js to run Ruby applications. Sometimes we have to run our apps on the certain domain. Masquito allows you to do it, you can create dns records in the similar Pow's way by creating symbolic links to your apps or just empty files in .masquito directory.

Notice:

Symbolic links were used by Pow in order to refer your application that will be run automatically, since Masquito doesn't run applications and does just DNS masquerading it's simplier to create just empty files. Check out another gem https://github.com/route/pump for full Pow's replacement.

Installation

First of all, uninstall Pow if you have it installed. I suppose you're on rbenv (honestly I haven't checked rvm support).

Install gem:

$ gem install masquito
$ rbenv rehash

Run this:

$ sudo masquito install

This command installs masquito server as a daemon that your system will start every boot. This daemon will respond on DNS queries from your system and monitor ~/.masquito directory for newly created domains.

Usage

Once you have installed masquito you can add domains to ~/.masquito

$ cd ~/.masquito
$ touch yoursite.com

It will create for you yoursite.com domain with the wild card for all subdomains and you can already ping and use it for the development.

$ ping yoursite.com
PING yoursite.com (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=53 time=1 ms

$ ping host.sub.yoursite.com
PING host.sub.yoursite.com (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=53 time=1 ms

Run your favorite application server manually, open up your browser and fill in address with port, that's all.

masquito's People

Contributors

kirs avatar route avatar

Stargazers

 avatar

Watchers

 avatar  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.