Open robinsandborg opened 8 years ago
@robinsandborg, sorry about the delay to help you, I was on vacation.
Maybe there is some plugin to import / export, but might be incompatible with other installed plugins. I've tried some with partial success, but generally have limitations or problems. https://straightupcraft.com/craft-plugins
I can also suggest to you, a similar way I like to work:
craftman mysql:backup
, open the .sql file within the backup and import into mysql in heroku. You need only take care to edit the .sql file and replace the localhost or 127.0.0.1 for the domain that you will use in heroku. In some cases you want to change http to https in some urls within the .sql file.craftman mysql:restore <BACKUP_FILE_NAME>
, and along with it, there is a way for you to create a script / hook to make these replacements automatically each time you import a backup with craftman: See a function mysql_restore_hook()
here https://github.com/gabrielmoreira/craftman#advanced
When following the instructions in the readme, the heroku app seems to start up with a clean database. Are there any tools to sync the database between the local and heroku environments?