High Level Instructions for Transferring an Application from Heroku to AWS?

I am a novice system administrator, looking for some general recommendations on how to port a Rails application from Heroku to AWS (elastic beanstalk). I use very few heroku services (except sendgrid). My biggest obstacle is the integration of the application itself and the database migration (from heroku postgresql to AWS RDS postgresql).

Thank you for any ideas of those who went through the same migration. Thanks!!!

+4
source share
2 answers

AWS, Heroku > Rackspace, , .

:

GIT. .

-

- - , GIT - Heroku. , GIT .

- Heroku, , . CDN , Heroku, . , - .

GoRails .

, - (nginx/apache). GIT, .

, , , RackSpace:

server {
   listen [ip];
   root /var/www/viewgit;

   server_name git.domain.com;
      location ~ \.php$ {
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_pass 127.0.0.1:9001;
      }
      location ~ ^projects/.*/(HEAD|info/refs|objects/info/.*|git-upload-pack)$   {
        root /var/www/viewgit/projects;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME   /usr/lib/git-core/git-http-backend;
        fastcgi_param PATH_INFO         $uri;
        fastcgi_param GIT_PROJECT_ROOT  /var/www/viewgit/projects;
        fastcgi_param GIT_HTTP_EXPORT_ALL "";
        fastcgi_pass unix:/var/run/fcgiwrap.socket;
     }
}

remote :

git add remote X http://git.yourdomain.com/your_code.git

. post-receive hooks .. .

-

, .

- pg:backups, "" , .

PGSQL > MYSQL. Heroku Amazon, , .

heroku.

, db, AWS. , , , , .

+2

Ive Heroku Elastic Beanstalk, Ive , Rails beanstalk:

-

Elastic Beanstalk , Rails.

Elastic Beanstalks Ruby Rails EC2. , Amazon .

Docker, , , Elastic Beanstalks Docker Rails Docker.

Herokus Cedar Docker Rails Rails, . , , Docker, , , .

, Elastic Beanstalk Docker. Docker EC2. AWS ECS (Elastic Container Service) Docker EC2. , , .

Rails, , Elastic Beanstalk.

Dockers multicontainer - Rails EC2. Docker Rails. ".ebextensions" EC2, -.

, -. - , .

- beanstalks. - Docker/Rails, Elastic Beanstalk . SQS EC2, , SQS . , SQS, , SQS , .

, Postgresql Heroku RDS ( Amazons) . , , Ive, , , , , , .

- Heroku, Elastic Beanstalk. , , , AWS.

Heroku, Ive , Heroku AWS.

, .

+2

Source: https://habr.com/ru/post/1618876/


All Articles