How do I set up Sinatra or another Ruby framework on NearlyFreeSpeech -



How do I set up Sinatra or another Ruby framework on NearlyFreeSpeech -

how next code work on site hosted on nearlyfreespeech.net?

require 'sinatra' '/' "hello world!" end

that code in script file named main.rb, in public folder on nsfn-hosted site.

but when go site, 403 error.

if worked, show hello world!.

what doing wrong?

short reply how can create happen: you can't.

just utilize heroku or openshift or other provieder allow run ruby (the have both free tiers)

since next question why can't that:

it's because how web server in combination php, ruby, python works. web server can write characters connected user (yes simplify here) need translate script in character. known run script. , create happens hoster need back upwards (as in have ruby installed), in case back upwards php can't run ruby code.

ruby sinatra nearlyfreespeech

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -