add config.ROOT_PATH
This commit is contained in:
@@ -20,6 +20,7 @@ module.exports = {
|
|||||||
|
|
||||||
IS_PRODUCTION: isProduction(),
|
IS_PRODUCTION: isProduction(),
|
||||||
|
|
||||||
|
ROOT_PATH: __dirname,
|
||||||
STATIC_PATH: path.join(__dirname, 'static'),
|
STATIC_PATH: path.join(__dirname, 'static'),
|
||||||
|
|
||||||
SOUND_ADD: 'file://' + path.join(__dirname, 'static', 'sound', 'add.wav'),
|
SOUND_ADD: 'file://' + path.join(__dirname, 'static', 'sound', 'add.wav'),
|
||||||
|
|||||||
@@ -65,8 +65,8 @@ module.exports = {
|
|||||||
status: 'paused',
|
status: 'paused',
|
||||||
infoHash: '88594aaacbde40ef3e2510c47374ec0aa396c08e',
|
infoHash: '88594aaacbde40ef3e2510c47374ec0aa396c08e',
|
||||||
displayName: 'Big Buck Bunny',
|
displayName: 'Big Buck Bunny',
|
||||||
posterURL: path.join(__dirname, '..', 'static', 'bigBuckBunny.jpg'),
|
posterURL: path.join(config.ROOT_PATH, 'static', 'bigBuckBunny.jpg'),
|
||||||
torrentPath: path.join(__dirname, '..', 'static', 'bigBuckBunny.torrent'),
|
torrentPath: path.join(config.ROOT_PATH, 'static', 'bigBuckBunny.torrent'),
|
||||||
files: [
|
files: [
|
||||||
{
|
{
|
||||||
'name': 'bbb_sunflower_1080p_30fps_normal.mp4',
|
'name': 'bbb_sunflower_1080p_30fps_normal.mp4',
|
||||||
@@ -80,8 +80,8 @@ module.exports = {
|
|||||||
status: 'paused',
|
status: 'paused',
|
||||||
infoHash: '6a9759bffd5c0af65319979fb7832189f4f3c35d',
|
infoHash: '6a9759bffd5c0af65319979fb7832189f4f3c35d',
|
||||||
displayName: 'Sintel',
|
displayName: 'Sintel',
|
||||||
posterURL: path.join(__dirname, '..', 'static', 'sintel.jpg'),
|
posterURL: path.join(config.ROOT_PATH, 'static', 'sintel.jpg'),
|
||||||
torrentPath: path.join(__dirname, '..', 'static', 'sintel.torrent'),
|
torrentPath: path.join(config.ROOT_PATH, 'static', 'sintel.torrent'),
|
||||||
files: [
|
files: [
|
||||||
{
|
{
|
||||||
'name': 'sintel.mp4',
|
'name': 'sintel.mp4',
|
||||||
@@ -95,8 +95,8 @@ module.exports = {
|
|||||||
status: 'paused',
|
status: 'paused',
|
||||||
infoHash: '02767050e0be2fd4db9a2ad6c12416ac806ed6ed',
|
infoHash: '02767050e0be2fd4db9a2ad6c12416ac806ed6ed',
|
||||||
displayName: 'Tears of Steel',
|
displayName: 'Tears of Steel',
|
||||||
posterURL: path.join(__dirname, '..', 'static', 'tearsOfSteel.jpg'),
|
posterURL: path.join(config.ROOT_PATH, 'static', 'tearsOfSteel.jpg'),
|
||||||
torrentPath: path.join(__dirname, '..', 'static', 'tearsOfSteel.torrent'),
|
torrentPath: path.join(config.ROOT_PATH, 'static', 'tearsOfSteel.torrent'),
|
||||||
files: [
|
files: [
|
||||||
{
|
{
|
||||||
'name': 'tears_of_steel_1080p.webm',
|
'name': 'tears_of_steel_1080p.webm',
|
||||||
|
|||||||
Reference in New Issue
Block a user