Reputation: 138
I have started developing an app with rails, and just set up a VPS on digitalocean. I have followed everything about the server config and capistrano deployment.
I can now access my website and deployment goes fine, except that my images are absent and my database is empty (but working).
What do I have to do to use my development database locally, and automatically put images and database in production mode on the vps when pushing ?
Upvotes: 0
Views: 42
Reputation: 1129
For image upload use either use cloud hosting services like AWS or Google Cloud Service or upload these images to folder that is not included in git ignore file.
For database , first up your local database and production database are two different things unless you use a common remote database though there are ways to migrate your local db to production too , follow this link Postgres Backup Digital Ocean
Upvotes: 1