Rails thin nginx windows
I want all network traffic to the page be SSL, no exceptions. I actually got several servers on ports , Then make sure you start thin in such a way that it is bound only to the localhost. This absolutely prevents inbound connections not originating from the local machine itself.
Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 7 years, 10 months ago. Active 7 years, 10 months ago. Viewed 2k times. I am setting up a server now that uses Ruby on Rails with the Thin server. I tried duplicating what I do on port 80, but I get errors saying it is already in use.
We must make sure that we have all dependencies from RVM. To make sure that we have all required dependencies, we execute the following command:. The next step is to make sure we have all components for Ruby on Rails.
Ruby Gems is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries, a tool designed to easily manage the installation of gems, and a server for distributing them, we can install it with this command and then use it to install Rails:.
Next, we need to make sure that we can easily deploy Ruby on rails to any web server. We will install and use Passenger for that. It will serve as interface or bridge for communication between Ruby and the web server, you can install it with the following command:. Once passenger is installed, the rest of the required setup is fully automated. We execute the command:. Once we do this, it checks for all dependencies automatically and install those that are missing.
If some manual user action is required, Passenger will tell us, as well as give us detailed instructions how to do it. We can try and access our new Ruby on Rails application using our browser. I have set up nginx nginx. Both nginx and thin 2 servers are running I have checked they are running.
I can access a static page in the rails public directory such as index. I want to be able to access the rails application. I had two problems. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Configuring Nginx, Thin and Rails. Can access static pages but not dynamic Ask Question.
Asked 9 years, 8 months ago.
0コメント