File: start.rb

package info (click to toggle)
ruby-ramaze 2012.12.08-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,060 kB
  • ctags: 1,200
  • sloc: ruby: 10,446; makefile: 8
file content (20 lines) | stat: -rw-r--r-- 576 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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__)