generator-angular-fullstack icon indicating copy to clipboard operation
generator-angular-fullstack copied to clipboard

Upload development database to openshift/heroku

Open TWKDreamState opened this issue 11 years ago • 6 comments

Is there a way to automate the upload of the local development database to the production database or to seed the production database?

TWKDreamState avatar Dec 09 '14 21:12 TWKDreamState

Are you using source control? ie. Git? If so, there are many tools out there which you can hook into for FTP deployments when certain commit conditions are met (ie. pushing to a deploy branch). A quick search engine query should pop up a few results.

Awk34 avatar Dec 11 '14 04:12 Awk34

I've was looking in the wrong place for the seed config. I've now changed it in the index.js file and the seeding of the production database is working.

I will look into your suggestions however as I might need to push a copy of a 'completed' database in the near future, so thank you.

TWKDreamState avatar Dec 11 '14 20:12 TWKDreamState

@TWKDreamState, Could you please introduce me your seeding methodology? I'm trying to seed the production DB. I've tried multiple ways (grunt, seed.js) but I don't seem to find a proper way for running a seeding task.

The seed.js file I think was made for automatic seeding for demo purposes, while I'm looking something more related to a 'Rails rake task', something like: grunt seed (Which I implemented, but the grunt file is not copied to the dist folder.

I have to seed more than 6GB to my DB so that's why I want to have a bit more of control of what is happening.

Thanks!

tomascharad avatar Sep 05 '15 15:09 tomascharad

For that size of data, I recommend using something like mondodump and mongorestore (assuming you're using mongo)

Awk34 avatar Sep 05 '15 22:09 Awk34

@Awk34 Many thanks for your advise. I have to parse 6 (1GB each aprox.) .txt files... I'm creating rows line by line, would mongodump and mongorestore apply to this?

tomascharad avatar Sep 06 '15 15:09 tomascharad

Hmm, maybe more so mongoimport. That's exactly what it's designed for.

Awk34 avatar Sep 06 '15 21:09 Awk34