Browse Source

adding deployment changes

Vishnu Iyengar 8 years ago
parent
commit
77f9e51927
4 changed files with 7 additions and 3 deletions
  1. 2
    2
      .gitignore
  2. 3
    0
      Capfile
  3. 1
    0
      bot.js
  4. 1
    1
      model.js

+ 2
- 2
.gitignore View File

@@ -1,2 +1,2 @@
1
-./setting.json
2
-./user.db
1
+data
2
+config

+ 3
- 0
Capfile View File

@@ -0,0 +1,3 @@
1
+require 'rubygems' 
2
+require 'railsless-deploy' 
3
+load 'config/deploy.rb' if respond_to?(:namespace)

+ 1
- 0
bot.js View File

@@ -36,6 +36,7 @@ function dispatch(command, from, tokens) {
36 36
 };
37 37
 
38 38
 bot.addListener(incoming, function(from, message) {
39
+    console.log(from, message);
39 40
     var tokens = message.split(' ');
40 41
     var first = _(tokens).head();
41 42
     var match = /(.*)!/.exec(first);

+ 1
- 1
model.js View File

@@ -1,4 +1,4 @@
1
-var userdb = require('dirty')('./user.db');
1
+var userdb = require('dirty')('./data/user.db');
2 2
 var uuid = require('node-uuid');
3 3
 var _ = require('./underscore');
4 4
 

Loading…
Cancel
Save