June 17, 2016
One liner server command in ruby
Have you ever wondered whether ruby has one liner server command equivalent to the python ? Turns out there is a similar command for ruby also.
Open your terminal, go to your desired directory where you want to run the server and enter the following:
ruby -run -e httpd . -p 5000
It will start a webserver runnning on your machine at port 5000. No extra gem is needed for this to run.
You might also like...
Using specific node version in rails app.
Fix error in ruby. ruby is loading crypto in an unsafe way
Renaming tmux window
Ways of Managerial Communication
Types of Organizational Communication
Purpose of Business Communication
Need for communication
Importance of Communication
Definition of Communication
Characteristics and Benefits of Effective Communication
7 Cs of Effective Communication
Fixing mysql2 install error
Ubuntu system program problem detected[Solved]
Serving Content through Cloudflare network
Free website using jekyll and free github hosting
How to install Jekyll ?
How to register for GithubEducation Pack ?
How to install Ruby on Linux