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

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -