Closed smartniazi closed 8 years ago
Seems like you missed this step
cp config/app_config.yml.example config/app_config.yml
I got it working now, Moments after i opened this issue.
=> Booting Thin
=> Rails 4.0.3 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
/usr/share/rvm/gems/ruby-2.1.0/gems/actionpack-4.0.3/lib/action_dispatch/http/mime_type.rb:166: warning: already initialized constant Mime::PDF
/usr/share/rvm/gems/ruby-2.1.0/gems/actionpack-4.0.3/lib/action_dispatch/http/mime_type.rb:166: warning: previous definition of PDF was here
Thin web server (v1.7.0 codename Dunder Mifflin)
Maximum connections set to 1024
Listening on 0.0.0.0:3000, CTRL+C to stop
I've uploaded it under a subfolder on my domain, How to view the website now ?
Go to localhost:3000
178.62.81.76:3000
It's not working
Try
rails s -b 178.62.81.76 -eproduction
But it is better to use passenger for deployment
Ran that command and this was the output
root@aim1one:/home/admin/web/aim1one.com/public_html/fluxday# rails s -b 178.62.81.76 -eproduction
=> Booting Thin
=> Rails 4.0.3 application starting in production on http://178.62.81.76:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
/usr/share/rvm/gems/ruby-2.1.0/gems/actionpack-4.0.3/lib/action_dispatch/http/mime_type.rb:166: warning: already initialized constant Mime::PDF
/usr/share/rvm/gems/ruby-2.1.0/gems/actionpack-4.0.3/lib/action_dispatch/http/mime_type.rb:166: warning: previous definition of PDF was here
Thin web server (v1.7.0 codename Dunder Mifflin)
Maximum connections set to 1024
Listening on 178.62.81.76:3000, CTRL+C to stop
Still not working
@smartniazi you wont be able to access port 3000 from a digitalocean server(or any vps) externally without configuring the firewall to do so. either open port 3000 in the droplet's firewall or try running in port 80 (you can replace 3000 with 80 in @tachyons comment, but better make sure that it does not mess up with other servers like apache/nginx)
@stpnlr @tachyons both of you helped me alot to get this working.
I installed passenger as suggested and then opened the port 3000 and it started working, Now is there any way to use a domain instead of this IP:PORT
Created a new droplet on digitalocean and tried to install as mentioned but stuck on rake db:migrate command, Below is the error: