All the issues i managed to fix with the import scripts by using a dev env instead of production, how can i go about moving the imported content on a exported .sql backup from the dev env to a production env? is it just as simple as exporting the .sql backup file and then installing a production env and importing the backup?
Yes.
There are other ways that do the job:
- database replication
- rsync the entire server
- point the production url at dev
But restoring backups (especially if they are stored on S3) is easy.
Make sure to backup uploads too if they aren’t on S3.
1 Like
To preserve the attachments and uploads, use discourse built in backup/restore functionality to backup from dev and restore to production
2 Likes