Usage of daru-view ruby gem in different Ruby web applications : Rails, Sinatra, Nanoc, Hanami
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo_nanoc
demo_rails
demo_sinatra
README.MD
Rakefile
run.rake

README.MD

Usage

  • To run rails app (here demo_rails contains the rails application) do :
rake run_app:rails

  • To bundle install in a folder(e.g. demo_rails) :
rake run_app:bundle_install['demo_rails']

  • To bundle update in a folder(e.g. demo_rails) :
rake run_app:bundle_update['demo_rails']

  • To bundle exec rails s in a folder(e.g. demo_rails) :
rake run_app:rails_server['demo_rails']

Note: Actually rake run_app:railscalls the bundle_install, bundle_update,rails_server .

  • To run nanoc web app :
rake run_app:nanoc

  • To bundle exec nanoc compile in a folder(e.g. demo_nanoc) :
rake run_app:nanoc_compile['demo_nanoc']

  • To bundle exec nanoc view in a folder(e.g. demo_nanoc) :
rake run_app:nanoc_server['demo_nanoc']

Note: Actually rake run_app:nanoccalls the bundle_install, bundle_update,nanoc_compile,nanoc_server .

  • To bundle exec ruby app.rb in a folder(e.g. demo_sinatra) :
rake run_app:sinatra_server

  • To run sinatra app,which is in demo_sinatra :
rake run_app:sinatra

Note: Actually rake run_app:sinatracalls the bundle_install, bundle_update,sinatra_server .