I lost the access to a droplet where I am running a rails 5 app that I've deployed with Capistrano. The stack of technologies I am using is

```
-Ruby 2.3.0 (RVM 2.9.1)
-Rails 5.0.1
-Puma
-Capistrano 3.7.2 (the first time I deployed the app I've used 3.6.0,                     but I was getting an error and I decided to upgrade it)
-Postgresql
- Nginx

```

I am able to take an snapshot and recreate the server and get the access again. However I am not able to make the app work again.

First things first, these are the steps I made

1. Take an snapshot of the server
2. Create a droplet based on the spanshot I did before
3. Setup access to the server (the user I used for deployment is there and I didn't need to do anything)

While I was trying to deploy Capristano I was getting an error that I didn't have access permissions to a folder o the folder didn't exists (the error was I haven't enough memory), but it turned out that I solved this adding swap memory.

Then I was getting an error that there was another puma.sock instance (or something like that), and I solved deleting the files from `/apps/myapp/shared/tmp`

Now it seems that when I try to deploy the app, The app does not have access to the database (the database is there with all the data)

Has anyone done something similar? is there a more magical/easy way?