Skip to content

Instantly share code, notes, and snippets.

@theCrab
Created November 8, 2013 15:32
Show Gist options
  • Select an option

  • Save theCrab/7372692 to your computer and use it in GitHub Desktop.

Select an option

Save theCrab/7372692 to your computer and use it in GitHub Desktop.
Ruby on Rails Windows startup script
@ECHO OFF
REM - This file is used to start-up the Rails Server on this app automatically or by clicking it.
REM - Open and save this file as a .bat and drop it in Windows Start -> All Programs -> start up folder.
REM - Point the path below to the app (stockist) for it to work. Let me know if nothing works.
CD C:\ssing\Sites\stockist
rails server webrick -p 3000 -e production
ECHO Hello Sam, Your Rails app (Stockist) is running. Press any key to close this window if it persists
PAUSE
REM This is the other way to start this server automatically
REM START "STOCKIST" /D "C:\Sam\Sites\stockist\" /b "rails server" -p 3000 -e production
http://stackoverflow.com/questions/877943/how-to-configure-a-rails-app-redmine-to-run-as-a-service-on-windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment