snipt

Ctrl+h for KB shortcuts

Ruby

Config.ru for my homesite

1
2
3
4
require 'rubygems'
require 'application.rb'

run Sinatra::Application
https://snippets.siftie.com/embed/76b52597271bbcc6ad256fe3aa231095/
/raw/76b52597271bbcc6ad256fe3aa231095/
76b52597271bbcc6ad256fe3aa231095
rb
Ruby
4
2019-04-16T06:09:29
True
False
False
/api/public/snipt/14854/
configru-for-my-homesite
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nb">require</span> <span class="s1">&#39;rubygems&#39;</span> </span><span id="L-2"><a name="L-2"></a><span class="nb">require</span> <span class="s1">&#39;application.rb&#39;</span> </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a><span class="n">run</span> <span class="no">Sinatra</span><span class="o">::</span><span class="no">Application</span> </span></pre></div> </td></tr></table>
config.ru, rack, ruby, sinatra