This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// specific router functions | |
digest = function(year, month, day, view){ | |
var destination = (typeof view === 'undefined') ? 'posts_digest' : 'posts_digest_'+view | |
var currentDate = new Date(); | |
if (typeof day !== 'undefined') { | |
currentDate = new Date(year, month-1, day) | |
} | |
Session.set('currentDate', currentDate); | |
// we need to make sure that the session changes above have been executed | |
// before we can look at the digest handle. XXX: this might be a bad idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Posts = new Meteor.Collection('posts'); | |
if (Meteor.isClient) { | |
Template.posts.helpers({ | |
posts: function() { | |
return Posts.find(); | |
} | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
killall node | |
#NODE_ARGS="--prof --prof_lazy --log" | |
#NODE_ARGS="--prof --log" | |
#!/bin/sh | |
RC=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd Sidebar | |
git pull | |
sudo mrt bundle /home/meteor/bundle.tgz | |
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----> Ruby/Rack app detected | |
-----> Installing dependencies using Bundler version 1.3.2 | |
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment | |
Fetching gem metadata from https://rubygems.org/....... | |
Fetching gem metadata from https://rubygems.org/.. | |
Fetching git@github.com:hull/hull-ruby.git | |
Host key verification failed. | |
fatal: The remote end hung up unexpectedly | |
Git error: command `git clone 'git@github.com:hull/hull-ruby.git' | |
"/tmp/build_3k5zpujuyojzf/vendor/bundle/ruby/1.9.1/cache/bundler/git/hull-ruby-66c224246466df82288c5430f3bf07c3c982c569" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0: "<%= commit "11-2", "Display notifications in the header." %>" | |
1: "commit" | |
2: " "Display notifications in the header."" | |
3: "Display notifications in the header." | |
index: 7352 | |
input: "..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Errors prevented bundling: | |
Exception while bundling application: | |
Error: Parse error - line 1, file /home/ubuntu/discovermeteor/bundle/app/packages/mailchimp/node_modules/mailchimp/node_modules/request/node_modules/node-uuid/test/test.html | |
<html> | |
at parseError (/home/ubuntu/.meteorite/meteors/meteor/meteor/bfe4b72ebec4367eaddcdf0887fcf5e649d9dcb8/packages/templating/html_scanner.js:23:14) | |
at Object.html_scanner.scan (/home/ubuntu/.meteorite/meteors/meteor/meteor/bfe4b72ebec4367eaddcdf0887fcf5e649d9dcb8/packages/templating/html_scanner.js:36:15) | |
at /home/ubuntu/.meteorite/meteors/meteor/meteor/bfe4b72ebec4367eaddcdf0887fcf5e649d9dcb8/packages/templating/package.js:44:32 | |
at _.extend.add_file (/home/ubuntu/.meteorite/meteors/meteor/meteor/bfe4b72ebec4367eaddcdf0887fcf5e649d9dcb8/tools/bundler.js:210:7) | |
at self.api.add_files (/home/ubuntu/.meteorite/meteors/meteor/meteor/bfe4b72ebec4367eaddcdf0887fcf5e649d9dcb8/tools/bundler.js:126:16) | |
at Array.forEach (native) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sachas-MacBook-Pro:Sidebar sacha$ git push stackful old-sidebar:master | |
Counting objects: 7, done. | |
Delta compression using up to 8 threads. | |
Compressing objects: 100% (4/4), done. | |
Writing objects: 100% (4/4), 345 bytes, done. | |
Total 4 (delta 3), reused 0 (delta 0) | |
remote: From /home/git/node-web | |
remote: * branch master -> FETCH_HEAD | |
remote: HEAD is now at cc71b32 test | |
remote: Deploying a Meteor app... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Meteor.methods({ | |
searchPosts: function(term) { | |
console.log('-- searching for "'+term+'" --') | |
Future = Npm.require('fibers/future'); | |
var fut = new Future(); | |
Meteor._RemoteCollectionDriver.mongo.db.executeDbCommand({ | |
"text": "posts", | |
search: term | |
}, function (error,results){ |