F
F
FreezkoSS2017-12-23 09:06:05
Nginx
FreezkoSS, 2017-12-23 09:06:05

I uploaded the project to the digital ocean using nginx, is it possible to transfer the records created in the local database to the database located on the host?

Previously, when I was using Heroku, I used the command heroku pg:push 'local database' DATABASE_URL --app 'host' and I would like to know if such a command exists on nginx, just having some problems creating certain entries

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Egor Kazantsev, 2017-12-25
@FreezkoSS

Well, if you really want to put capistrano db =)

O
oh_shi, 2017-12-23
@oh_shi

Heroku is PaaS (Platform as a Service), you pay for such features. And nginx is a web server, it has nothing to do with the database. Therefore, you will have to dump the database yourself and transfer it to a new server. You can configure Capistrano or its analogues for this to automate the deployment. And if the number of entries is not large, then write everything you need in seeds.rb and roll them out of it.

F
FreezkoSS, 2017-12-23
@FreezkoSS

Do I need to add just one entry, and if I add it to seeds.rb, run it, will it be displayed on the hosting?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question