Skip to content

Instantly share code, notes, and snippets.

currentDigestHandle();
currentDigestHandle().loading();
currentMDateForDigest().toString();
// 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
var Posts = new Meteor.Collection('posts');
if (Meteor.isClient) {
Template.posts.helpers({
posts: function() {
return Posts.find();
}
})
}
#!/bin/sh
killall node
#NODE_ARGS="--prof --prof_lazy --log"
#NODE_ARGS="--prof --log"
#!/bin/sh
RC=1
#!/bin/sh
cd Sidebar
git pull
sudo mrt bundle /home/meteor/bundle.tgz
cd ..
-----> 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"
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: "..."
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)
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...
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){