某社の社員食堂に出るメニュー予報システム
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
db
lib
public
test
views
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
app.rb
config.ru
sunsun.gemspec
unicorn.conf

README.md

Sunsun

Build Status

Requirements

  • Ruby 1.9.2+, 1.9.3+
  • Rack ServerSinatra 1.3.2+
  • ORM
    • Sequel
  • Database
    • SQLite3

Installation

Sunsun used bundler

$ gem install bundler

Install gems required by Sunsun.

$ bundle install --without development test

Create the database structure.

$ bundle exec rake db:migrate                         # To "db/development.sqlite3"
$ SUNSUN_ENV="production" bundle exec rake db:migrate # To "db/production.sqlite3"
$ SUNSUN_ENV="test" bundle exec rake db:migrate       # To "db/test.sqlite3"

Load the fixtures. (Default: "development" environment)

$ bundle exec rake db:fixtures

Running web server. (Default: "development" environment)

$ bundle exec rackup config.ru -p 8080        # Use Webrick
$ bundle exec unicorn -c unicorn.conf -p 8080 # Use Unicorn

http://localhost:8080, You should now see Sunsun WebPage.