Use shotgun to speed up your development

January 3, 2012

You should be using shotgun to speed up your development, instead of killing your web app server everytime you want to reload code changes into webrick, mongrel or any other rack compliant server you could be using shotgun and have it watch your files for changes and reload the code automatically

$   gem install shotgun

That is it! Now launch your shotgun app server:

$   cd my_app
$   shotgun

This will launch shotgun with the default settings:

  • Listen only on
  • Run on development environment
  • Look for on the current directory

Now lets say you want to use something like using the production environment

$   shotgun -E production -o -p 3000
  • -E lets you set the environment
  • -o configures the address the server will bind to
  • -p sets the port the server will bind to

happy hacking


comments powered by Disqus