ruby on rails - Deploying local database to production and the other way around -
i have rails app has model called 'opportunity'. model has several records stored in database on local development environment , want deploy app. it, want info in local database deployed well.
is possible? have looked @ rake tasks , seeding both not seem quite want.
thanks much help.
for postgres command export database called pg_dump
to dump database:
$ pg_dump mydb > db.out to reload database:
$ psql -d database -f db.out ruby-on-rails database deployment
No comments:
Post a Comment