updated env variables

This commit is contained in:
bill bittner 2017-07-13 22:21:18 -07:00
parent c938ae265c
commit 3b30be73b7
7 changed files with 8 additions and 20 deletions

View file

@ -13,9 +13,9 @@ spee.ch is a single-serving site that reads and publishes images to and from the
* clone this repo
* customize `config/develpment.json` by replacing the value of `Database.DownloadDirectory` with a string representing the local path where you want uploaded files to be stored.
* run `npm install`
* to start the server, from your command line run `node server.js` while passing three environmental variables: your lbry wallet address (`LBRY_WALLET_ADDRESS`), your mysql connection uri (`MYSQL_CONNECTION_STRING`), and the environment to run (`NODE_ENV`).
* i.e. `LBRY_WALLET_ADDRESS=<your wallet address here> MYSQL_CONNECTION_STRING=<your connection uri here> NODE_ENV=development node server.js`
* e.g. `LBRY_WALLET_ADDRESS=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX MYSQL_CONNECTION_STRING=mysql://root:XXXXXX@localhost:3306/lbry NODE_ENV=development node server.js`
* to start the server, from your command line run `node server.js` while passing three environmental variables: your lbry wallet address (`LBRY_CLAIM_ADDRESS`), your mysql connection uri (`MYSQL_CONNECTION_STRING`), and the environment to run (`NODE_ENV`).
* i.e. `LBRY_CLAIM_ADDRESS=<your wallet address here> MYSQL_CONNECTION_STRING=<your connection uri here> NODE_ENV=development node server.js`
* e.g. `LBRY_CLAIM_ADDRESS=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX MYSQL_CONNECTION_STRING=mysql://root:XXXXXX@localhost:3306/lbry NODE_ENV=development node server.js`
* To run hot, use `nodemon` instead of `node`
* visit [localhost:3000](http://localhost:3000)

View file

@ -1,8 +1,6 @@
{
"WalletConfig": {
"LbryPayAddress": "LBRY_PAY_ADDRESS",
"LbryClaimAddress": "LBRY_CLAIM_ADDRESS",
"LbryChangeAddress": "LBRY_CHANGE_ADDRESS"
"LbryClaimAddress": "LBRY_CLAIM_ADDRESS"
},
"Database": {
"MySqlConnectionUri": "MYSQL_CONNECTION_STRING"

View file

@ -1,8 +1,6 @@
{
"WalletConfig": {
"LbryPayAddress": "none",
"LbryClaimAddress": "none",
"LbryChangeAddress": "none"
"LbryClaimAddress": "none"
},
"AnalyticsConfig":{
"GoogleId": "none"

View file

@ -1,8 +1,6 @@
{
"WalletConfig": {
"LbryPayAddress": "none",
"LbryClaimAddress": "none",
"LbryChangeAddress": "none"
"LbryClaimAddress": "none"
},
"AnalyticsConfig":{
"GoogleId": "UA-100747990-1"

View file

@ -1,8 +1,6 @@
{
"WalletConfig": {
"LbryPayAddress": "none",
"LbryClaimAddress": "none",
"LbryChangeAddress": "none"
"LbryClaimAddress": "none"
},
"AnalyticsConfig":{
"GoogleId": "UA-60403362-3"

View file

@ -1,8 +1,6 @@
{
"WalletConfig": {
"LbryPayAddress": "none",
"LbryClaimAddress": "none",
"LbryChangeAddress": "none"
"LbryClaimAddress": "none"
},
"AnalyticsConfig":{
"GoogleId": "UA-100747990-1"

View file

@ -52,9 +52,7 @@ module.exports = {
},
createPublishParams (name, filePath, license, nsfw) {
logger.debug(`Creating Publish Parameters for "${name}"`);
// const payAddress = config.get('WalletConfig.LbryPayAddress');
const claimAddress = config.get('WalletConfig.LbryClaimAddress');
// const changeAddress = config.get('WalletConfig.LbryChangeAddress');
// filter nsfw and ensure it is a boolean
if (nsfw === false) {
nsfw = false;