Where to store Rails sites on an Apache server?

 2 years ago
source link: https://www.codesd.com/item/where-to-store-rails-sites-on-an-apache-server.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Where to store Rails sites on an Apache server?


I successfully installed passenger on my Apache server and have a rails site running successfully. I'm very new to server management, and I have a very simple question that I can't seem to find an answer to. Where to store my Rails apps? I understand Passanger can reach applications anywhere on the server, so where should the apps be?

Debian's passenger install recommends installing your app to /usr/share/%APP%/ and symlinking the /public dir of the app to /var/www or a subdirectory. I like this method for its cleanliness, though it is a fair bit more work than pretty much every other method out there.

Related Articles

Should I store Web site images in SQL Server or on drive C:

I am programming a website in asp.net Visual Web Developer which I am going to have a lot of product pictures to display on the webpage. Should I store all my images in SQL Server and pull each picture from there or should I store all of the images i

How to run the ASP.NET 4.0 site on the Apache server?

I understood that I need to use «mod_aspdotnet», but I can't find this module for ASP.NET 4.0: only for 2.0. Please, help me.Try to look at the Mono Project. They have a module for the Apache server called «mod_mono». Hope this helps.

How to run a python script with selenium called by php via the apache server?

I want to execute the following script in Python through my site in local apache server: #!/Python34/python from selenium import webdriver driver=webdriver.Firefox() driver.get("C:\wamp64\www\desenvol\index.html") elem1 = driver.find_element_by_

ASP.NET MVC Multi Site - where to store site configuration data

I'm developing an ASP.NET MVC multi site application (can host multiple sites from the same application instance / multi-tenant application). I've previously done this in a web forms application and loaded up the appropriate site configuration data (

Ruby on Rails site slow / low

I'm taking over a Ruby on Rails site and I'm discovering that the site has huge performance issues. Sometimes the site doesn't even load. And this is not new for the site. It's on a Rackspace Server (First Generation) with 2gb Ram. It's running on Ub

Mobile website - where to store private data on devices?

I'm developing mobile website and I have one problem with security some of data. First time the user browse my site, the page requests a server to get some private user's data (i.e. RSA private key) which is used in future operations. This private ke

PHP Basics - Where to store the MySQL password used by PHP

I am new to web development and I'm learning PHP in order to sell a few binary files (shared Linux host). The site is not yet live. My php scripts (50% borrowed code, 50% self-written, 95% fully understood) login to MySQL to READ the items for sale,

Multi-database connection string: where to store it in my application

I have different database with same schema. I need to connect to one of them according to the client that has been connected. For example if ClientA is connected i must connect to DatabaseA; If ClientB is connected i must connect to DatabaseB; Now I

Fedora + Apache + Phusion passenger + Rails display the default apache page (always)

Even though there is a huge amount of information about this subject I'm still stuck at the apache default page shown by the server. The worse part is that everything seems to work properly. I've installed everything using dnf, even the ruby gems I'm

Where to store the full url in a cms?

I'm creating a cms and have not yet settled on the matter of where to store the complete url for a given page in the structure. Every page have a slug (url friendly name of the page) and every page has a nullable (for top-level pages) parent and chil

Grails and Tomcat: where to store downloaded files in the file system?

I wrote a small Web-Application using Grails. The resulting war-file is deployed on a Tomcat application server. The app has an upload functionality for attachments. I chose to save the uploaded files to disk (rather than storing blobs in the DB). At

Encryption key and decryption, where to store and use for the .net application

We are designing a .net web application that has an external and internal site. Both sites need to encrypt data only the internal site needs to decrypt data. We are wondering what are the best practices for: Which encryption method to choose? Where t

Where to store user file downloads?

In my compojure app, where should I store user upload files? Do I just make a user-upload dir in my project root and stick everything in there? Is there anything special I should do (classpath, permissions, etc)?To properly answer your question, you

Where to store HTML templates to use in Backbone.js

I'm currently developing a static site (no backend or server stuff) with Backbone.js and Middleman. The site doesnt have any dynamic content, just plain html code. But it has some transitions between pages and some Javascript effects. So I want to ma

About Joyk

Aggregate valuable and interesting links.
Joyk means Joy of geeK