Skip to content

Commit

Permalink
moved configuration to ~/.config,
Browse files Browse the repository at this point in the history
updated readme,
bumped version
  • Loading branch information
asapach committed Apr 23, 2014
1 parent 8d472ff commit 2c0fecf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ Based on [torrent-stream](https://github.com/mafintosh/torrent-stream), inspired

## Usage

1. Get the code (using git clone or otherwise)
1. You will also need [bower](https://github.com/bower/bower): run `npm install -g bower` and `bower install`
2. Run `npm install --production`
1. Run `node server/index.js`
1. `npm install -g peerflix-server`
1. `peerflix-server`
1. Open your browser at [http://localhost:9000/](http://localhost:9000/)
1. Enjoy!
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "peerflix-server",
"version": "0.0.1",
"version": "0.0.2",
"author": "Aliaksei Sapach <[email protected]>",
"description": "Streaming torrent client for node.js with web ui.",
"bin": {
Expand All @@ -15,6 +15,7 @@
"type": "git",
"url": "https://github.com/asapach/peerflix-server.git"
},
"keywords": ["torrent", "stream", "peerflix", "server", "web"],
"dependencies": {
"torrent-stream": "~0.7.1",
"range-parser": "~1.0.0",
Expand Down
3 changes: 2 additions & 1 deletion server/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ var fs = require('fs'),
magnet = require('magnet-uri'),
engine = require('./engine'),
socket = require('./socket'),
configPath = path.join(__dirname, 'config'),
homePath = process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'],
configPath = path.join(homePath, '.config', 'peerflix-server'),
configFile = path.join(configPath, 'config.json'),
storageFile = path.join(configPath, 'torrents.json'),
torrents = {},
Expand Down

0 comments on commit 2c0fecf

Please sign in to comment.