Poibank » History » Version 2
Version 1 (kewang, 07/01/2021 06:47 AM) → Version 2/3 (jason.lu, 07/13/2021 10:02 AM)
# Poibank
```
export HRK="heroku config:set"
export PRJ="-a poibank-next-jason"
$HRK DATABASE_URL=postgres://u7r1o7rcujasol:p0d2e4d8ae510b40c165b57d5dadc1efe590a6180ed151dd34bbc557c95a05801@ec2-3-224-236-183.compute-1.amazonaws.com:5432/di0aqun794lc4 $PRJ
$HRK DATABASE_EC_URL=postgres://ub83ejkgc5gak6:p72c5059f9e32e1e9dc22fea569c7865706b98c862431048b219b520057028791@ec2-34-197-176-208.compute-1.amazonaws.com:5432/d2rm0l5r1eti49 $PRJ
$HRK ES_URL=http://es.poibank.com:1450 $PRJ
$HRK ES_USERNAME=funliday $PRJ
$HRK ES_PASSWORD=poibankgraphpoi $PRJ
$HRK INDEX_NAME=poibank $PRJ
$HRK REDIS_POIBANK_HOST=redis-14124.c8.us-east-1-2.ec2.cloud.redislabs.com $PRJ
$HRK REDIS_POIBANK_PASSWORD=7PUqxmAbLMMGjsSBWoiEdrdNBT8NuhiV $PRJ
$HRK REDIS_POIBANK_PORT=14124 $PRJ
$HRK REDIS_POIBANK_URL=redis://redis-14124.c8.us-east-1-2.ec2.cloud.redislabs.com:14124 $PRJ
$HRK REDIS_AUTOCOMPLETE_HOST=redis-14948.c10.us-east-1-4.ec2.cloud.redislabs.com $PRJ
$HRK REDIS_AUTOCOMPLETE_PASSWORD=Funlidayredispwd1 $PRJ
$HRK REDIS_AUTOCOMPLETE_PORT=14948 $PRJ
$HRK REDIS_AUTOCOMPLETE_URL=redis://redis-14948.c10.us-east-1-4.ec2.cloud.redislabs.com:14948 $PRJ
$HRK RECOMMEND_POI_COUNT=200 $PRJ
$HRK FOURSQUARE_CLIENT_ID=CY5DOP25AHBKVWNCPD3H3BU25DIJARMU041PCLCU30WT051J $PRJ
$HRK FOURSQUARE_CLIENT_SECRET=Z4SHBQTW1FGK5DMRKBYEMUXRYGTVJCLHOVVCHV44YOKSQPPO $PRJ
$HRK GOOGLE_MAPS_APIKEY=AIzaSyDBr2LWA8yn_RoMub0rq3xVjffXTa8cF4g $PRJ
$HRK POIBANK_SEARCH=true $PRJ
$HRK LEGACY_POIBANK_SEARCH=true $PRJ
$HRK FOURSQUARE_SEARCH=true $PRJ
$HRK HERE_MAP_APP_ID=1RXgEiYi6L6ORLAsk6Hy $PRJ
$HRK HERE_MAP_APP_CODE=cduvt7xLoXeqjkbhPqE8LQ $PRJ
$HRK SUGGESTION_IMAGE_AWS_ACCESS_KEY=AKIA6BDBT4NMKXUWVBJ7 $PRJ
$HRK SUGGESTION_IMAGE_AWS_SECRET_KEY=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 $PRJ
$HRK NPM_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWFsX2dyb3VwcyI6WyJrZXdhbmciXSwibmFtZSI6Imtld2FuZyIsImdyb3VwcyI6WyJrZXdhbmciLCIkYWxsIiwiJGF1dGhlbnRpY2F0ZWQiLCJAYWxsIiwiQGF1dGhlbnRpY2F0ZWQiLCJhbGwiLCJrZXdhbmciXSwiaWF0IjoxNTY0NjQ4MDA4LCJuYmYiOjE1NjQ2NDgwMDksImV4cCI6MTU2OTgzMjAwOH0.187R2qI1xm-4PTqZXUrKDNE6DDuoB1StGyIqpL0tdXQ $PRJ
$HRK SEARCH_DISTANCE_PARAMETERS='[{"power":1,"max":0.02,"offset":0.02},{"power":1,"max":0.05,"offset":0.05},{"power":1,"max":0.08,"offset":0.08},{"power":1,"max":0.1,"offset":0.1},{"power":1,"max":0.2,"offset":0.2},{"power":1,"max":0.3,"offset":0.3},{"power":1,"max":0.4,"offset":0.4},{"power":1,"max":0.5,"offset":0.5},{"power":2,"max":1,"offset":1},{"power":3,"max":2,"offset":2},{"power":4,"max":3,"offset":3},{"power":5,"max":4,"offset":4},{"power":6,"max":5,"offset":5},{"power":7,"max":6,"offset":6},{"power":8,"max":7,"offset":7},{"power":9,"max":8,"offset":8},{"power":10,"max":9,"offset":9},{"power":11,"max":10,"offset":10}]' $PRJ SEARCH_DISTANCE_PARAMETERS=[{"power":1,"max":0.02,"offset":0.02},{"power":1,"max":0.05,"offset":0.05},{"power":1,"max":0.08,"offset":0.08},{"power":1,"max":0.1,"offset":0.1},{"power":1,"max":0.2,"offset":0.2},{"power":1,"max":0.3,"offset":0.3},{"power":1,"max":0.4,"offset":0.4},{"power":1,"max":0.5,"offset":0.5},{"power":2,"max":1,"offset":1},{"power":3,"max":2,"offset":2},{"power":4,"max":3,"offset":3},{"power":5,"max":4,"offset":4},{"power":6,"max":5,"offset":5},{"power":7,"max":6,"offset":6},{"power":8,"max":7,"offset":7},{"power":9,"max":8,"offset":8},{"power":10,"max":9,"offset":9},{"power":11,"max":10,"offset":10}]
$HRK ES_SEARCH_DISTANCE_OFFSET=20 $PRJ
$HRK ES_SEARCH_DISTANCE_SCALE=0.5 $PRJ
$HRK IV_AUTH=funliday-poibank $PRJ
$HRK HOSTNAME=funliday-web-dev.herokuapp.com $PRJ
$HRK MONGODB_URL='mongodb://willie:Williefunlidaypwd1@cluster-v8pb9d5c-shard-00-01.1ke3r.mongodb.net:27017,cluster-v8pb9d5c-shard-00-02.1ke3r.mongodb.net:27017,cluster-v8pb9d5c-shard-00-00.1ke3r.mongodb.net:27017/heroku_v8pb9d5c?ssl=true&replicaSet=atlas-6lh4je-shard-0&authSource=admin&retryWrites=true&w=majority' $PRJ MONGODB_URL=mongodb://willie:Williefunlidaypwd1@cluster-v8pb9d5c-shard-00-01.1ke3r.mongodb.net:27017,cluster-v8pb9d5c-shard-00-02.1ke3r.mongodb.net:27017,cluster-v8pb9d5c-shard-00-00.1ke3r.mongodb.net:27017/heroku_v8pb9d5c?ssl=true&replicaSet=atlas-6lh4je-shard-0&authSource=admin&retryWrites=true&w=majority
```
```
export HRK="heroku config:set"
export PRJ="-a poibank-next-jason"
$HRK DATABASE_URL=postgres://u7r1o7rcujasol:p0d2e4d8ae510b40c165b57d5dadc1efe590a6180ed151dd34bbc557c95a05801@ec2-3-224-236-183.compute-1.amazonaws.com:5432/di0aqun794lc4 $PRJ
$HRK DATABASE_EC_URL=postgres://ub83ejkgc5gak6:p72c5059f9e32e1e9dc22fea569c7865706b98c862431048b219b520057028791@ec2-34-197-176-208.compute-1.amazonaws.com:5432/d2rm0l5r1eti49 $PRJ
$HRK ES_URL=http://es.poibank.com:1450 $PRJ
$HRK ES_USERNAME=funliday $PRJ
$HRK ES_PASSWORD=poibankgraphpoi $PRJ
$HRK INDEX_NAME=poibank $PRJ
$HRK REDIS_POIBANK_HOST=redis-14124.c8.us-east-1-2.ec2.cloud.redislabs.com $PRJ
$HRK REDIS_POIBANK_PASSWORD=7PUqxmAbLMMGjsSBWoiEdrdNBT8NuhiV $PRJ
$HRK REDIS_POIBANK_PORT=14124 $PRJ
$HRK REDIS_POIBANK_URL=redis://redis-14124.c8.us-east-1-2.ec2.cloud.redislabs.com:14124 $PRJ
$HRK REDIS_AUTOCOMPLETE_HOST=redis-14948.c10.us-east-1-4.ec2.cloud.redislabs.com $PRJ
$HRK REDIS_AUTOCOMPLETE_PASSWORD=Funlidayredispwd1 $PRJ
$HRK REDIS_AUTOCOMPLETE_PORT=14948 $PRJ
$HRK REDIS_AUTOCOMPLETE_URL=redis://redis-14948.c10.us-east-1-4.ec2.cloud.redislabs.com:14948 $PRJ
$HRK RECOMMEND_POI_COUNT=200 $PRJ
$HRK FOURSQUARE_CLIENT_ID=CY5DOP25AHBKVWNCPD3H3BU25DIJARMU041PCLCU30WT051J $PRJ
$HRK FOURSQUARE_CLIENT_SECRET=Z4SHBQTW1FGK5DMRKBYEMUXRYGTVJCLHOVVCHV44YOKSQPPO $PRJ
$HRK GOOGLE_MAPS_APIKEY=AIzaSyDBr2LWA8yn_RoMub0rq3xVjffXTa8cF4g $PRJ
$HRK POIBANK_SEARCH=true $PRJ
$HRK LEGACY_POIBANK_SEARCH=true $PRJ
$HRK FOURSQUARE_SEARCH=true $PRJ
$HRK HERE_MAP_APP_ID=1RXgEiYi6L6ORLAsk6Hy $PRJ
$HRK HERE_MAP_APP_CODE=cduvt7xLoXeqjkbhPqE8LQ $PRJ
$HRK SUGGESTION_IMAGE_AWS_ACCESS_KEY=AKIA6BDBT4NMKXUWVBJ7 $PRJ
$HRK SUGGESTION_IMAGE_AWS_SECRET_KEY=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 $PRJ
$HRK NPM_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWFsX2dyb3VwcyI6WyJrZXdhbmciXSwibmFtZSI6Imtld2FuZyIsImdyb3VwcyI6WyJrZXdhbmciLCIkYWxsIiwiJGF1dGhlbnRpY2F0ZWQiLCJAYWxsIiwiQGF1dGhlbnRpY2F0ZWQiLCJhbGwiLCJrZXdhbmciXSwiaWF0IjoxNTY0NjQ4MDA4LCJuYmYiOjE1NjQ2NDgwMDksImV4cCI6MTU2OTgzMjAwOH0.187R2qI1xm-4PTqZXUrKDNE6DDuoB1StGyIqpL0tdXQ $PRJ
$HRK SEARCH_DISTANCE_PARAMETERS='[{"power":1,"max":0.02,"offset":0.02},{"power":1,"max":0.05,"offset":0.05},{"power":1,"max":0.08,"offset":0.08},{"power":1,"max":0.1,"offset":0.1},{"power":1,"max":0.2,"offset":0.2},{"power":1,"max":0.3,"offset":0.3},{"power":1,"max":0.4,"offset":0.4},{"power":1,"max":0.5,"offset":0.5},{"power":2,"max":1,"offset":1},{"power":3,"max":2,"offset":2},{"power":4,"max":3,"offset":3},{"power":5,"max":4,"offset":4},{"power":6,"max":5,"offset":5},{"power":7,"max":6,"offset":6},{"power":8,"max":7,"offset":7},{"power":9,"max":8,"offset":8},{"power":10,"max":9,"offset":9},{"power":11,"max":10,"offset":10}]' $PRJ SEARCH_DISTANCE_PARAMETERS=[{"power":1,"max":0.02,"offset":0.02},{"power":1,"max":0.05,"offset":0.05},{"power":1,"max":0.08,"offset":0.08},{"power":1,"max":0.1,"offset":0.1},{"power":1,"max":0.2,"offset":0.2},{"power":1,"max":0.3,"offset":0.3},{"power":1,"max":0.4,"offset":0.4},{"power":1,"max":0.5,"offset":0.5},{"power":2,"max":1,"offset":1},{"power":3,"max":2,"offset":2},{"power":4,"max":3,"offset":3},{"power":5,"max":4,"offset":4},{"power":6,"max":5,"offset":5},{"power":7,"max":6,"offset":6},{"power":8,"max":7,"offset":7},{"power":9,"max":8,"offset":8},{"power":10,"max":9,"offset":9},{"power":11,"max":10,"offset":10}]
$HRK ES_SEARCH_DISTANCE_OFFSET=20 $PRJ
$HRK ES_SEARCH_DISTANCE_SCALE=0.5 $PRJ
$HRK IV_AUTH=funliday-poibank $PRJ
$HRK HOSTNAME=funliday-web-dev.herokuapp.com $PRJ
$HRK MONGODB_URL='mongodb://willie:Williefunlidaypwd1@cluster-v8pb9d5c-shard-00-01.1ke3r.mongodb.net:27017,cluster-v8pb9d5c-shard-00-02.1ke3r.mongodb.net:27017,cluster-v8pb9d5c-shard-00-00.1ke3r.mongodb.net:27017/heroku_v8pb9d5c?ssl=true&replicaSet=atlas-6lh4je-shard-0&authSource=admin&retryWrites=true&w=majority' $PRJ MONGODB_URL=mongodb://willie:Williefunlidaypwd1@cluster-v8pb9d5c-shard-00-01.1ke3r.mongodb.net:27017,cluster-v8pb9d5c-shard-00-02.1ke3r.mongodb.net:27017,cluster-v8pb9d5c-shard-00-00.1ke3r.mongodb.net:27017/heroku_v8pb9d5c?ssl=true&replicaSet=atlas-6lh4je-shard-0&authSource=admin&retryWrites=true&w=majority
```