-
Notifications
You must be signed in to change notification settings - Fork 10
Deploying
Duncan Renfrow-Symon edited this page Jul 4, 2016
·
10 revisions
$ cd <project>/meteor
$ pull-code
$ bash deployModulus.sh
# Follow prompts: branch names should be 'origin/<branch>' unless you intentionally want to deploy a local change
Check site availability, potentially $ modulus logs
- Sign up as a normal user
mongo proximus.modulusmongo.net:27017/dAxiro2j -u <user> -p <pass>-
db.users.find({"profile.firstName": 'Tyler'}).pretty()Then grab the user id you want db.users.update({_id: "<USERID>"}, {$set: {roles: ['admin']}})- navigate to /admin, for the first person it allows you to "Claim Admin", not sure how we will do any more
- Backup the database from Prod to your local machine: mongodump -h proximus.modulusmongo.net -u user -p pass --authenticationDatabase dbId --db dbId
- Name the backup something other than generic "dump" to prevent mistakes
- Drop the local database using the dropDatabase command (I believe you just run that command by itself when you're on the appropriate database). This is because mongorestore doesn't do deletes or updates.
- Note: for QA you have to run db.getCollectionNames().forEach(function(c) { if (c.indexOf("system.") == -1) db[c].drop(); }) because you can't drop DBs.
- Restore the database from your local to QA: mongorestore -h proximus.modulusmongo.net -u user -p pass --authenticationDatabase dbId --db dbId path/to/dump