diff options
Diffstat (limited to 'start.rb')
| -rwxr-xr-x | start.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/start.rb b/start.rb new file mode 100755 index 0000000..f3b046e --- /dev/null +++ b/start.rb @@ -0,0 +1,20 @@ +#!/usr/bin/env ruby + +# Use this file directly like `ruby start.rb` if you don't want to use the +# `ramaze start` command. +# +# All application related things should go into `app.rb`, this file is simply +# for options related to running the application locally. +# +# You can run this file as following: +# +# $ ruby start.rb +# $ ./start.rb +# +# If you want to be able to do the latter you'll have to make sure the file can be +# executed: +# +# $ chmod +x ./start.rb +require File.expand_path('../app', __FILE__) + +Ramaze.start(:adapter => :webrick, :port => 7000, :file => __FILE__) |
