pszoqa.blogg.se

Download ruby hello world
Download ruby hello world











download ruby hello world

So far you run a few very simple tests, either with unittest or with RSpec. sudo status sudo god start thin-sinatra-hello-world sudo god stop thin-sinatra-hello-world Testing Then run a few commands to demonstrate everything is in running order. Then load your configuration and start the monitor: sudo god load thin-sinatra-hello-world sudo god monitor thin-sinatra-hello-world i vi các ngôn ng nh Javascript s là document.

download ruby hello world

on code trong file helloworld.rb có ý ngha là xut ra màn hình vi dòng ch 'Hello World' thông qua hàm puts. If you’re feeling particularly fancy then you can keep the Thin server up and running with God.įirst start the god daemon: sudo god sudo status Trên màn hình Terminal s hin th ra dòng ch 'Hello World'. thin -C configs/config.yml -R configs/ start thin -C configs/config.yml -R configs/ stop God

download ruby hello world

Sinatra comes with it’s own web server./app.rb ThinĪlternatively you can use an instance of Thin. Much of the code included in this example application is concerned with configuration for deploying with various other ruby tools. If you’re thinking that a hello world example doesn’t need a test suite, logging, configuration for multiple web servers and code that will restart it if it runs too hot, you’d be right. This here application is a glorified Hello World using the Sinatra Ruby web framework.













Download ruby hello world