E
E
eldar_web2015-01-30 06:26:04
Ruby on Rails
eldar_web, 2015-01-30 06:26:04

How to work with a site on Ruby on Rails, laid out on a hosting?

Having a site on the local - we worked on the console, that is, we created controllers, models, etc. But how to work with the site if it is hosted?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Philipp, 2015-01-30
@zoonman

Discover the process of deploying applications and continuous integration systems (Capistrano, for example).
And in general it becomes so:
1. Git is used. GitHub is a simple and inexpensive solution for storing changes. If the toad is very choking, take the simplest but most reliable computer, set up a git server, do authorization by key and stick out its tail on the Internet. Write some primitive to back up the git repository somewhere else. At least a stupid archive that is sent to the post office at night. Work and don't sweat it.
2. Install Vagrant, do development in it, prepare features, demonstrate to the customer and prepare staging in a separate instance. You can install multiple environments. Nothing prevents you from doing it.
3. On the git server, set up a hook for Capistrano, which will automatically deploy after assigning a tag for the main branch. Or deploy manually.

E
Eugene Burmakin, 2015-01-30
@Freika

A development environment is deployed on the local machine; after deploying to the server, the application must work in a production environment. This, among other things, means that you don’t need to climb there from the word “generally”. All changes are made on the local machine, tested and then rolled out to the production server. No "climbing through ftp corrected the file" in Ruby and Rails, if it comes to mind, forget it immediately.
On the other hand, logging into the production server via SSH and using the Rails console to correct N records from the database is more or less normal.

B
Benajmin Smith, 2015-01-30
@benjaminsmith

How did you learn this framework? I think in the same place you will find how to deploy the application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question