start with ruby code
added rackup support, good. Also now use sinatra and all to get started.
This commit is contained in:
parent
40d8754378
commit
deec2b8707
3 changed files with 22 additions and 0 deletions
6
Gemfile
6
Gemfile
|
@ -1 +1,7 @@
|
|||
gem 'erb'
|
||||
gem 'rackup'
|
||||
gem 'erb'
|
||||
|
||||
# For devlopment
|
||||
gem 'pry'
|
||||
gem 'pry-doc'
|
||||
|
|
14
app.rb
Normal file
14
app.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
require 'sinatra'
|
||||
require 'erb'
|
||||
|
||||
$root = "/home/pranshu/Documents/proj/perc/test"
|
||||
|
||||
class Perc < Sinatra::Application
|
||||
set :views, $root
|
||||
|
||||
get "/" do
|
||||
erb :main
|
||||
end
|
||||
|
||||
end
|
2
config.ru
Normal file
2
config.ru
Normal file
|
@ -0,0 +1,2 @@
|
|||
require './app'
|
||||
run Perc
|
Loading…
Add table
Add a link
Reference in a new issue