Browse Source

ok

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
07f26a7ec3
  1. 32
      binaries/config/app.json
  2. 18
      binaries/config/config.json
  3. 2
      package.json

32
binaries/config/app.json

@ -1,32 +0,0 @@
{
"development": {
"senza_url": "http://localhost:3000/api/v2",
"macaroon_location": "/Users/evanfeenstra/code/lnd-dev/alice/data/chain/bitcoin/simnet/admin.macaroon",
"tls_location": "/Users/evanfeenstra/Library/Application Support/Lnd/tls.cert",
"node_ip": "127.0.0.1",
"lnd_port": "10001",
"node_http_protocol": "http",
"node_http_port": "3001",
"hub_api_url": "http://lvh.me/api/v1",
"hub_url": "http://lvh.me/ping",
"hub_invite_url": "http://lvh.me/invites",
"hub_check_invite_url": "http://lvh.me/check_invite",
"media_host": "localhost:5000"
},
"production": {
"senza_url": "https://staging.senza.us/api/v2/",
"macaroon_location": "/home/ubuntu/.lnd/data/chain/bitcoin/mainnet/admin.macaroon",
"tls_location": "/home/ubuntu/.lnd/tls.cert",
"lnd_log_location": "/home/ubuntu/.lnd/logs/bitcoin/mainnet/lnd.log",
"lncli_location": "/home/ubuntu/go/bin",
"node_ip": "localhost",
"node_http_protocol": "http",
"node_http_port": "80",
"lnd_port": "10009",
"hub_api_url": "https://hub.sphinx.chat/api/v1",
"hub_url": "https://hub.sphinx.chat/ping",
"hub_invite_url": "https://hub.sphinx.chat/invites",
"hub_check_invite_url": "https://hub.sphinx.chat/check_invite",
"media_host": "memes.sphinx.chat"
}
}

18
binaries/config/config.json

@ -1,18 +0,0 @@
{
"development": {
"dialect": "sqlite",
"storage": "/Users/Shared/sphinx.db"
},
"docker_development": {
"dialect": "sqlite",
"storage": "./sphinx.db"
},
"test": {
"dialect": "sqlite",
"storage": "/home/ubuntu/sphinx.db"
},
"production": {
"dialect": "sqlite",
"storage": "/home/ubuntu/sphinx.db"
}
}

2
package.json

@ -15,7 +15,7 @@
"prod": "cp config/app.json dist/config/app.json && cp config/config.json dist/config/config.json && env NODE_ENV=production node dist/app.js",
"tsc": "rm -rf dist/ && tsc && cp -r public dist/public",
"dev": "rm -rf dist/ && tsc && cp -r public dist/public && node --inspect ./dist/app.js",
"build-binaries": "rm -rf dist/ && tsc && cp config/app.json dist/config/app.json && cp config/config.json dist/config/config.json && pkg . --target node12-alpine-x64,node12-macos-x64 --out-path binaries && cp config/app.json binaries/config/app.json && cp config/config.json binaries/config/config.json"
"build-binaries": "rm -rf dist/ && tsc && cp config/app.json dist/config/app.json && cp config/config.json dist/config/config.json && pkg . --target node12-alpine-x64,node12-macos-x64 --out-path binaries"
},
"keywords": [],
"author": "",

Loading…
Cancel
Save