-
Notifications
You must be signed in to change notification settings - Fork 1
/
couchDB DEV setup from TEST.sh
60 lines (46 loc) · 8.19 KB
/
couchDB DEV 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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/_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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/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 heads@192.168.1.254/inventory_rt7"
curl -X PUT "http://rt7 admin:my dog has three heads@192.168.1.254/inventory_review_rt7"
curl -X PUT "http://rt7 admin:my dog has three heads@192.168.1.254/menus_corp"
curl -X PUT "http://rt7 admin:my dog has three heads@192.168.1.254/rewards_rt7"
curl -X PUT "http://rt7 admin:my dog has three heads@192.168.1.254/terminals_corp"
curl -X PUT "http://rt7 admin:my dog has three heads@192.168.1.254/campaigns"