-
Notifications
You must be signed in to change notification settings - Fork 1
/
couchDB PRODUCTION setup from TEST.sh
60 lines (46 loc) · 8.22 KB
/
couchDB PRODUCTION setup from TEST.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
## setting up reports enviornment from server
#curl -H "Content-Type: application/json" -X POST http://paul:password@localhost:5984/rt7_backoffice_app/_compact
#curl -H "Content-Type: application/json" -X POST http://paul:password@localhost:5984/cashouts/_compact
#curl -H "Content-Type: application/json" -X POST http://paul:password@localhost:5984/transactions/_compact
#curl -H "Content-Type: application/json" -X POST http://paul:password@localhost:5984/cashedout_transactions/_compact
#curl -H "Content-Type: application/json" -X POST http://paul:password@localhost:5984/menus_corp/_compact
#curl -H "Content-Type: application/json" -X POST http://paul:password@localhost:5984/menu_buttons/_compact
#curl -H "Content-Type: application/json" -X POST http://paul:password@localhost:5984/inventory/_compact
#curl -H "Content-Type: application/json" -X POST http://paul:password@localhost:5984/inventory_changes/_compact
#curl -H "Content-Type: application/json" -X POST http://paul:password@localhost:5984/terminals_rt7/_compact
#curl -H "Content-Type: application/json" -X POST http://paul:password@localhost:5984/stores/_compact
#curl -H "Content-Type: application/json" -X POST http://paul:password@localhost:5984/media_stats/_compact
#curl -H "Content-Type: application/json" -X POST http://paul:password@localhost:5984/campaigns/_compact
#curl -H "Content-Type: application/json" -X POST http://paul:password@localhost:5984/_users/_compact
#curl -H "Content-Type: application/json" -X POST http://paul:password@localhost:5984/users/_compact
#TODO add delay here too allow compaction to complete
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/rt7_backoffice_app","source":"rt7_backoffice_app","create_target":true, "doc_ids":["_design/app"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/cashout_designs","source":"cashouts","create_target":true, "doc_ids":["_design/pos","_design/reporting"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/cashouts","source":"cashouts","create_target":true, "doc_ids":["_design/pos","_design/reporting"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/transactions_designs","source":"transactions","create_target":true, "doc_ids":["_design/pos","_design/reporting"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/transactions","source":"transactions","create_target":true, "doc_ids":["_design/pos","_design/reporting"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/cashedout_transactions","source":"transactions","create_target":true, "doc_ids":["_design/pos","_design/reporting"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/inventory_designs","source":"inventory","create_target":true, "doc_ids":["_design/app"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/inventory","source":"inventory","create_target":true, "doc_ids":["_design/app"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/inventory_changes","source":"inventory_changes","create_target":true, "doc_ids":["_design/app","_design/misc"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/inventory_changes_designs","source":"inventory_changes","create_target":true, "doc_ids":["_design/app","_design/misc"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/media_stats","source":"media_stats","create_target":true, "doc_ids":["_design/app","_design/reports"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/media_stats_designs","source":"media_stats","create_target":true, "doc_ids":["_design/app","_design/reports"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/menu_buttons","source":"menu_buttons","create_target":true, "doc_ids":["_design/menubuttons"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/stores_designs","source":"stores","create_target":true, "doc_ids":["_design/app"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/terminals_rt7","source":"terminals_rt7","create_target":true, "doc_ids":["_design/app"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/terminals_designs","source":"terminals_rt7","create_target":true, "doc_ids":["_design/app"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/campaigns_designs","source":"campaigns","create_target":true, "doc_ids":["_design/app"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/campaigns","source":"campaigns","create_target":true, "doc_ids":["_design/app"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/_users","source":"_users","create_target":true, "doc_ids":["_design/_auth","_design/app"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/users","source":"users","create_target":true, "doc_ids":["_design/_auth","_design/app"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/users_designs","source":"_users","create_target":true, "doc_ids":["_design/_auth","_design/app"]}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/companies","source":"companies","create_target":true, "doc_ids":["_design/app"]}' http://paul:password@localhost:5984/_replicate
#curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/inv_new","source":"inv_new","create_target":true}' http://paul:password@localhost:5984/_replicate
curl -X POST -H "Content-Type: application/json" -d '{"target":"http://rt7 admin:my dog has three [email protected]/install_files_rt7","source":"install_files_rt7","create_target":true}' http://paul:password@localhost:5984/_replicate
curl -X PUT "http://rt7 admin:my dog has three [email protected]/inventory_rt7"
curl -X PUT "http://rt7 admin:my dog has three [email protected]/inventory_review_rt7"
curl -X PUT "http://rt7 admin:my dog has three [email protected]/menus_corp"
curl -X PUT "http://rt7 admin:my dog has three [email protected]/rewards_rt7"
curl -X PUT "http://rt7 admin:my dog has three [email protected]/terminals_corp"
curl -X PUT "http://rt7 admin:my dog has three [email protected]/campaigns"