sábado, 8 de junio de 2019

Paiza Cloud and Ruby Hello World with Sinatra

Paiza Cloud and Ruby  Hello World with Sinatra

1. Create account in paiza.cloud

2. Create New file: myapp.rb


# my_app.rb
require 'sinatra'

get '/' do
 'Hello world!'
end



3. Open Terminal:
Install sinatra:
sudo gem install sinatra

4. Terminal:
ruby myapp.rb

5. Icon
In the left side create icon 4567
Click
https://localhost-profeitm-1.paiza-user.cloud:4567/

And there apper the app. Hello World

References:
https://www.netguru.com/codestories/first-steps-sinatra-1
https://engineering.paiza.io/entry/paizacloud_sinatra







No hay comentarios:

Publicar un comentario