Is there a way to avoid having to type “ruby script/server” in "C:\www
\myrubysite"?
Is there a way to eliminate “:3000” from " http://localhost:3000/ "?
Is there a way to add '“myrubysite” to " http://localhost/ "?
Is there a way to avoid having to type “ruby script/server” in "C:\www
\myrubysite"?
Is there a way to eliminate “:3000” from " http://localhost:3000/ "?
Is there a way to add '“myrubysite” to " http://localhost/ "?
Or install the thin gem and us that as the “development” server that
can start at boot time. Add a thin.yml in your codes config directory
so you can start the server with thin -C config/thin.yml start… You
can set the port number and stuff in the config file.
Delirium tremens wrote:
Is there a way to avoid having to type “ruby script/server” in "C:\www
\myrubysite"?
You mean you want the server to start when windows starts? Just make a
file start_app.bat like this:
c:
cd \www\myrubysite
ruby script\server
and place it in your system startup folder. Or, you can look at some
sort of application as service thing:
http://www.application-as-service.com/ (haven’t tested it).
Is there a way to eliminate “:3000” from " http://localhost:3000/ "?
specify the server to run on port 80: ruby script/server -p 80. Try ruby
script/server --help
Is there a way to add '“myrubysite” to " http://localhost/ "?
As a site prefix? IE http://localhost/myrubysite? Or as a host name? IE
http://myrubysite/
The latter can be done through editing
C:\Windows\System32\Drivers\Etc\Hosts and adding a line like
127.0.0.1 myrubysite
Then you can reach your app like http://myrubysite
If you were thinking about the context path I’m not sure. Used to be
this was a real hassle, but I haven’t checked in a while, so it might
have been fixed/made easy.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs