updated env variables
This commit is contained in:
parent
c938ae265c
commit
3b30be73b7
7 changed files with 8 additions and 20 deletions
|
@ -13,9 +13,9 @@ spee.ch is a single-serving site that reads and publishes images to and from the
|
||||||
* clone this repo
|
* 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.
|
* 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`
|
* 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`).
|
* 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_WALLET_ADDRESS=<your wallet address here> MYSQL_CONNECTION_STRING=<your connection uri here> NODE_ENV=development node server.js`
|
* 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_WALLET_ADDRESS=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX MYSQL_CONNECTION_STRING=mysql://root:XXXXXX@localhost:3306/lbry 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`
|
* To run hot, use `nodemon` instead of `node`
|
||||||
* visit [localhost:3000](http://localhost:3000)
|
* visit [localhost:3000](http://localhost:3000)
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"WalletConfig": {
|
"WalletConfig": {
|
||||||
"LbryPayAddress": "LBRY_PAY_ADDRESS",
|
"LbryClaimAddress": "LBRY_CLAIM_ADDRESS"
|
||||||
"LbryClaimAddress": "LBRY_CLAIM_ADDRESS",
|
|
||||||
"LbryChangeAddress": "LBRY_CHANGE_ADDRESS"
|
|
||||||
},
|
},
|
||||||
"Database": {
|
"Database": {
|
||||||
"MySqlConnectionUri": "MYSQL_CONNECTION_STRING"
|
"MySqlConnectionUri": "MYSQL_CONNECTION_STRING"
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"WalletConfig": {
|
"WalletConfig": {
|
||||||
"LbryPayAddress": "none",
|
"LbryClaimAddress": "none"
|
||||||
"LbryClaimAddress": "none",
|
|
||||||
"LbryChangeAddress": "none"
|
|
||||||
},
|
},
|
||||||
"AnalyticsConfig":{
|
"AnalyticsConfig":{
|
||||||
"GoogleId": "none"
|
"GoogleId": "none"
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"WalletConfig": {
|
"WalletConfig": {
|
||||||
"LbryPayAddress": "none",
|
"LbryClaimAddress": "none"
|
||||||
"LbryClaimAddress": "none",
|
|
||||||
"LbryChangeAddress": "none"
|
|
||||||
},
|
},
|
||||||
"AnalyticsConfig":{
|
"AnalyticsConfig":{
|
||||||
"GoogleId": "UA-100747990-1"
|
"GoogleId": "UA-100747990-1"
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"WalletConfig": {
|
"WalletConfig": {
|
||||||
"LbryPayAddress": "none",
|
"LbryClaimAddress": "none"
|
||||||
"LbryClaimAddress": "none",
|
|
||||||
"LbryChangeAddress": "none"
|
|
||||||
},
|
},
|
||||||
"AnalyticsConfig":{
|
"AnalyticsConfig":{
|
||||||
"GoogleId": "UA-60403362-3"
|
"GoogleId": "UA-60403362-3"
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"WalletConfig": {
|
"WalletConfig": {
|
||||||
"LbryPayAddress": "none",
|
"LbryClaimAddress": "none"
|
||||||
"LbryClaimAddress": "none",
|
|
||||||
"LbryChangeAddress": "none"
|
|
||||||
},
|
},
|
||||||
"AnalyticsConfig":{
|
"AnalyticsConfig":{
|
||||||
"GoogleId": "UA-100747990-1"
|
"GoogleId": "UA-100747990-1"
|
||||||
|
|
|
@ -52,9 +52,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
createPublishParams (name, filePath, license, nsfw) {
|
createPublishParams (name, filePath, license, nsfw) {
|
||||||
logger.debug(`Creating Publish Parameters for "${name}"`);
|
logger.debug(`Creating Publish Parameters for "${name}"`);
|
||||||
// const payAddress = config.get('WalletConfig.LbryPayAddress');
|
|
||||||
const claimAddress = config.get('WalletConfig.LbryClaimAddress');
|
const claimAddress = config.get('WalletConfig.LbryClaimAddress');
|
||||||
// const changeAddress = config.get('WalletConfig.LbryChangeAddress');
|
|
||||||
// filter nsfw and ensure it is a boolean
|
// filter nsfw and ensure it is a boolean
|
||||||
if (nsfw === false) {
|
if (nsfw === false) {
|
||||||
nsfw = false;
|
nsfw = false;
|
||||||
|
|
Loading…
Reference in a new issue