Skip to content

Commit 729eb2e

Browse files
author
Alexis Tyler
committed
Fixed README.md as we have a sample config now
1 parent f9db3fc commit 729eb2e

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

README.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,7 @@
22

33
Make sure to be using nvm to install iojs or a version of node as new as the latest iojs
44

5-
Once uploaded to a server if you run ``./install.sh`` everything should be good to go just create a ``config.js`` file in the root directory similar to the file below.
6-
7-
````
8-
var config = {}
9-
10-
config.tumblr = {};
11-
config.env = {};
12-
config.db = {};
13-
14-
config.tumblr.token = process.env.TUMBLR_TOKEN || 'SECRET_CODE_HERE';
15-
config.tumblr.tokenSecret = process.env.TUMBLR_TOKEN_SECRET || 'SECRET_CODE_HERE';
16-
17-
config.env.port = process.env.PORT || 3000;
18-
config.db.uri = process.env.DB_URI || 'mongodb://localhost:27017/xtend';
19-
20-
module.exports = config;
21-
22-
````
5+
Once uploaded to a server if you run ``./install.sh`` everything should be good to go just copy the ``sample_config.js`` to ``./config/config.js`` and change the config to match the way you'd like Xtend to run or set the environment variables as they're listed in the file.
236

247

258
This is in no way affiliated with Tumblr, Inc., its partners, or its investors.

0 commit comments

Comments
 (0)