A
A
asdasdfasf2016-04-19 14:12:31
MongoDB
asdasdfasf, 2016-04-19 14:12:31

How to migrate a live site to Ruby on rails and mongoDB in one day for a beginner?

Good day to all.
There is a website written in Ruby on Rails, MongoDB database, Unicorn web server, nginx, Ubuntu 15.04. There is access to the server via SSH for tomorrow, it is necessary to urgently transfer it to a local server tomorrow. There are no backups, as far as I know, only a live version. Well, in addition, I’ll say that I didn’t deal with such a stack, only with the standard Lamp. On the topic, the most relevant that I found: https://habrahabr.ru/post/140910/, however, the topic there does not fully cover my case, since the application is deployed there from scratch.
As I see it:
1. Copy nginx configs (easy)
2. Make a complete dump of the base on mong using standard tools, then pour it into the local one. (approximately imagine)
Now the actual questions:
1. Does a full dump transfer all databases and users with all passwords, access rights, etc.?
2. How to transfer the site files themselves and run it, because I am confused by the presence of gems, rvm, etc.?
3. Do I need to customize unicorn?
4. What EXACTLY will need to be configured, fixed in the project files (for example, database connection settings)?
-------------------------------------------------- ----------------------------------
Yes, I understand that from scratch in one day, if you can transfer it , then it is very crooked, but such is the task and, unfortunately, there is no getting away from it. here is the task of AT LEAST SOMEONE TO MAKE IT WORK on a local server and then slowly understand everything. While I went to read the manuals on this topic

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2016-04-19
@dluhhbiu

1 yes
2 install rpm on the local machine, install the same version of ruby ​​via rpm, clone the site from the repository (the site is located on some kind of repository (github, bitbucket, etc.), install all gems via bundler
3 most likely you will have to fix the path
4 will have to edit paths in ngix, unicorn, db connection
it's hard the first time ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question