changed 'DownloadDirectory' config var

This commit is contained in:
bill bittner 2017-07-12 09:00:38 -07:00
parent fadd055e33
commit a766076554
7 changed files with 7 additions and 7 deletions

View file

@ -11,7 +11,7 @@ spee.ch is a single-serving site that reads and publishes images to and from the
* save your connection uri somewhere handy (you will need it when you start the server) * save your connection uri somewhere handy (you will need it when you start the server)
* the uri should be in the form `mysql://user:pass@host:port/dbname` * the uri should be in the form `mysql://user:pass@host:port/dbname`
* clone this repo * clone this repo
* customize `config/develpment.json` by replacing the value of `Database.PublishUploadPath` 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_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` * i.e. `LBRY_WALLET_ADDRESS=<your wallet address here> MYSQL_CONNECTION_STRING=<your connection uri here> NODE_ENV=development node server.js`

View file

@ -9,7 +9,7 @@
}, },
"Database": { "Database": {
"MySqlConnectionUri": "none", "MySqlConnectionUri": "none",
"PublishUploadPath": "none" "DownloadDirectory": "none"
}, },
"Logging": { "Logging": {
"LogLevel": "none" "LogLevel": "none"

View file

@ -9,7 +9,7 @@
}, },
"Database": { "Database": {
"MySqlConnectionUri": "none", "MySqlConnectionUri": "none",
"PublishUploadPath": "C:\\Users\\Bones\\Downloads\\lbry\\" "DownloadDirectory": "/home/ubuntu/Downloads/"
}, },
"Logging": { "Logging": {
"LogLevel": "silly" "LogLevel": "silly"

View file

@ -9,7 +9,7 @@
}, },
"Database": { "Database": {
"MySqlConnectionUri": "none", "MySqlConnectionUri": "none",
"PublishUploadPath": "/home/lbry/Downloads/" "DownloadDirectory": "/home/lbry/Downloads/"
}, },
"Logging": { "Logging": {
"LogLevel": "verbose" "LogLevel": "verbose"

View file

@ -9,7 +9,7 @@
}, },
"Database": { "Database": {
"MySqlConnectionUri": "none", "MySqlConnectionUri": "none",
"PublishUploadPath": "/home/ubuntu/Downloads/" "DownloadDirectory": "/home/ubuntu/Downloads/"
}, },
"Logging": { "Logging": {
"LogLevel": "debug" "LogLevel": "debug"

View file

@ -8,7 +8,7 @@ const errorHandlers = require('../helpers/libraries/errorHandlers.js');
const { postToStats, sendGoogleAnalytics } = require('../controllers/statsController.js'); const { postToStats, sendGoogleAnalytics } = require('../controllers/statsController.js');
const config = require('config'); const config = require('config');
const hostedContentPath = config.get('Database.PublishUploadPath'); const hostedContentPath = config.get('Database.DownloadDirectory');
module.exports = app => { module.exports = app => {
// route to return a file directly // route to return a file directly

View file

@ -7,7 +7,7 @@ const Handlebars = require('handlebars');
const config = require('config'); const config = require('config');
const winston = require('winston'); const winston = require('winston');
const hostedContentPath = config.get('Database.PublishUploadPath'); const hostedContentPath = config.get('Database.DownloadDirectory');
// configure logging // configure logging
const logLevel = config.get('Logging.LogLevel'); const logLevel = config.get('Logging.LogLevel');