How do I run a Ruby on Rails app? -
forget form of server configuration (e.g. sites-enabled / apache / nginx). imagine files publicly accessible in web server.
i have these folders available:
/app/assets /app/controllers /app/helpers /app/mailers /app/models /app/observers /app/uploaders /app/views /public/
i don't have more folders this.
if go domain.com/public/htmlpage.html can see html render fine. if go domain.com/public/ "index file doesn't exists" message.
how run rails app? file supposed run in web browser?
cd project root directory, directory 1 above app directory , run command
bundle install
and later
rails s
this command run webrick server on port 3000, since running application on localhost can use url check application in browser
http://localhost:3000/
you can append name of file have in public directory run as
http://localhost:3000/htmlpage.html
Comments
Post a Comment