Skip to content

Commit

Permalink
Merge pull request #50 from CodersTV/update-1.0
Browse files Browse the repository at this point in the history
Update to Meteor 1.0
  • Loading branch information
gabrielhpugliese committed Mar 14, 2015
2 parents 873beb2 + a86d0c7 commit 6740aaf
Show file tree
Hide file tree
Showing 63 changed files with 369 additions and 2,422 deletions.
56 changes: 31 additions & 25 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,41 @@
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

raix:handlebar-helpers
cmather:handlebars-server
natestrauser:font-awesome
gadicohen:sitemaps
dburles:collection-helpers
matb33:collection-hooks
chuangbo:[email protected]
meteorhacks:fast-render
xorax:multiple-callbacks
gadicohen:robots-txt
arunoda:streams
iron:router
joshowens:shareit
meteor
patrickleet:tags
service-configuration
underscore
accounts-google
less
spiderable
jquery
email
standard-app-packages
chatroom
collection-hooks
font-awesome
handlebar-helpers
handlebars-server
iron-router
marked
mongo-counter
npm
presence
robots-txt
roles
sitemaps
streams
fast-render
bootstrap-3
service-configuration
accounts-ui-unstyled
collection-helpers
reactive-path
multiple-callbacks
shareit
kadira
publish-composite
tags
alanning:roles
meteorhacks:npm


npm-container
check
reywood:publish-composite
mongo
random
meteor-platform
twbs:bootstrap
coderstv:reactive-path
tmeasday:presence
coderstv:chat
meteorhacks:kadira
2 changes: 2 additions & 0 deletions .meteor/platforms
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
server
browser
2 changes: 1 addition & 1 deletion .meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.3
[email protected]
101 changes: 101 additions & 0 deletions .meteor/versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
[email protected]
[email protected]
[email protected]
[email protected]
alanning:[email protected]
[email protected]
arunoda:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
chuangbo:[email protected]
chuangbo:[email protected]
cmather:[email protected]
coderstv:[email protected]
coderstv:[email protected]
[email protected]
dburles:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
gadicohen:[email protected]
gadicohen:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
joshowens:[email protected]
[email protected]
[email protected]
[email protected]
lepozepo:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
matb33:[email protected]
[email protected]
[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
meteorhacks:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
natestrauser:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
patrickleet:[email protected]
raix:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
reywood:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
tmeasday:[email protected]
[email protected]
twbs:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
xorax:[email protected]
3 changes: 2 additions & 1 deletion client/lib/controllers/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ CoderController = RouteController.extend({
var coder = Meteor.users.findOneFromCoderId(this.params.coderId);
if (! _.isEmpty(coder)) {
Session.set('coder', coder);
Session.set('chatHost', coder._id);
Session.set('currentCoder', coder._id);
Meteor.subscribe(
'userPresenceWithProfile',
coder.profile.username,
Expand All @@ -19,7 +21,6 @@ CoderController = RouteController.extend({
Session.set('chatSubsReady', true);
}
);
Session.set('currentCoder', coder._id);
}
}
});
Expand Down
6 changes: 3 additions & 3 deletions client/lib/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Router.onBeforeAction(function setTitle () {
});

Router.onBeforeAction(function headerActiveLi () {
var href = Router.current().path;
var href = Router.current().location.get().path;

$('li.active').removeClass('active');
$('.navbar li').find('a[href="'+href+'"]').parent().addClass('active');
Expand All @@ -37,7 +37,7 @@ Router.onAfterAction(function setPath () {
var current = Router.current();
if (! current) return;

Path.set(current.path);
Path.set(current.location.get().path);
});

Deps.autorun(function () {
Expand Down Expand Up @@ -68,7 +68,7 @@ Router.onRun(function reactiveTrackPageview () {
return;
}

var path = current.path;
var path = current.location.get().path;
trackPageview(path);
});

Expand Down
16 changes: 7 additions & 9 deletions dev
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ APP_DIR=/home/meteor
ROOT_URL=http://$APP_HOST
MONGO_URL=mongodb://localhost:27017/$APP_NAME

METEOR_CMD=mrt
METEOR_CMD=meteor
METEOR_OPTIONS=''

if [ -z "$EC2_PEM_FILE" ]; then
Expand Down Expand Up @@ -61,17 +61,15 @@ sudo git clone $GIT_URL $APP_NAME;
DEPLOY="
cd $APP_DIR;
cd $APP_NAME;
sudo npm -g update meteorite;
sudo git fetch --all;
sudo git reset --hard origin/$GIT_BRANCH;
sudo git checkout $GIT_BRANCH;
sudo rm -rf ../dev-bundle;
sudo rm -rf ../dev-bundle.tgz;
sudo $METEOR_CMD update --force;
sudo $METEOR_CMD bundle --debug ../dev-bundle.tgz;
cd ..;
mkdir -p dev-bundle;
sudo tar -zxvf dev-bundle.tgz;
sudo git clean -f -d;
sudo rm -rf ../bundle;
sudo $METEOR_CMD build ../ --debug --directory;
cd ../bundle/programs/server;
npm install;
cd ../../..;
pm2 delete dev;
mongo $APP_NAME $APP_DIR/$APP_NAME/mongo.config;
METEOR_SETTINGS=\$(cat ${APP_DIR}/${APP_NAME}/dev.json) DEBUG=ct:* PORT=80 ROOT_URL=$ROOT_URL MONGO_URL=$MONGO_URL pm2 start bundle/main.js -x --name 'dev';
Expand Down
4 changes: 2 additions & 2 deletions dev.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ APP_HOST=dev.coderstv.com
[email protected]:CodersTV/site.git

# Does your project use meteorite, or plain meteor?
METEORITE=true
METEORITE=false

# What's your app name?
APP_NAME=dev-coderstv

# Git branch
GIT_BRANCH=master
GIT_BRANCH=update-1.0
2 changes: 0 additions & 2 deletions lib/both/collections/channels.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ Channel = (function () {
function set (doc) {
_validate(doc);

Language.incVideos(doc.language);
return Channels.insert(doc);
}

Expand All @@ -71,7 +70,6 @@ Channel = (function () {
function removeByURL (URL) {
var channel = Channels.findOne({URL: URL});
if (channel) {
Language.incVideos(channel.language, -1);
Channels.remove(channel._id);
return true;
}
Expand Down
73 changes: 0 additions & 73 deletions packages/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions packages/chatroom/.gitignore

This file was deleted.

Loading

0 comments on commit 6740aaf

Please sign in to comment.