This file contains hidden or 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
'use strict'; | |
describe('Controller: ContentCtrl', function () { | |
// load the controller's module | |
beforeEach(module('librecmsApp')); | |
// load controller widgets/views/partials | |
var views = [ | |
'views/course.item.list.html', |
This file contains hidden or 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
'use strict'; | |
angular.module('librecmsApp') | |
.controller('ContentCtrl', function ($state, $scope) { | |
$scope.itemType = $state.current.data.itemType; | |
}); |
This file contains hidden or 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
upstream api { | |
server 127.0.0.1:3030; | |
} | |
server { | |
listen 0.0.0.0:80 default deferred; | |
server_name librecms; | |
access_log /var/log/nginx/librecms.access.log; | |
error_log /var/log/nginx/librecms.error.log; |
This file contains hidden or 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
upstream api { | |
server librecms-api.jit.su:80; | |
} | |
server { | |
listen 0.0.0.0:80 default deferred; | |
server_name librecms; | |
access_log /var/log/nginx/librecms.access.log; | |
error_log /var/log/nginx/librecms.error.log; |
This file contains hidden or 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
upstream api { | |
server 127.0.0.1:3030; # Works fine | |
# server librecms-api.jit.su:80; # Does not work | |
#server zdwolfe.net:3030; # Works fine | |
} | |
server { | |
listen 80; | |
server_name localhost; | |
access_log /var/log/nginx/librecms.access.log; |
This file contains hidden or 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
upstream api { | |
# server 127.0.0.1:3030; # Standard proxy_pass server to locally running server | |
server librecms-api.jit.su:80; # proxy_pass server to remote nodejitsu drone. | |
} | |
server { | |
listen 80; | |
server_name localhost; | |
root /var/www/librecms/src/angular/app; |
This file contains hidden or 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
> [email protected] test /home/zdwolfe/src/baucis | |
> mocha --bail --timeout 5000 --globals vegetables | |
․․․․․․․․․․․․․․․․․․․․․․․․Error: The "X-Baucis-Push header" is deprecated. Use "X-Baucis-Update-Operator: $push" instead. | |
at module.exports.deprecated (/home/zdwolfe/src/baucis/middleware/configure.js:31:55) | |
at callbacks (/home/zdwolfe/src/baucis/node_modules/express/lib/router/index.js:164:37) | |
at param (/home/zdwolfe/src/baucis/node_modules/express/lib/router/index.js:138:11) | |
at param (/home/zdwolfe/src/baucis/node_modules/express/lib/router/index.js:135:11) |
This file contains hidden or 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
db.courses.aggregate([{ | |
$match: { | |
students: "52868c8f38f0777b4e000007" | |
} | |
}, | |
{ | |
$unwind: "$assignments" | |
}, | |
{ | |
$group: { |
This file contains hidden or 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
db.courses.aggregate([ | |
{ | |
$match: { | |
students: "52868c8f38f0777b4e000007" | |
} | |
}, | |
{ | |
$unwind: "$assignments" | |
}, | |
{ |
This file contains hidden or 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
Running "jshint:all" (jshint) task | |
Linting app/scripts/app.js ...ERROR | |
[L269:C29] W033: Missing semicolon. | |
ngProgressLite.start() | |
Linting app/scripts/controllers/Assignment.js ...ERROR | |
[L95:C47] W116: Expected '===' and instead saw '=='. | |
$scope.hideCollabs = $scope.hideCollabs == false ? true : false; | |
Linting app/scripts/controllers/Assignment.js ...ERROR | |
[L98:C6] W015: Expected '$scope' to have an indentation at 5 instead at 6. | |
$scope.searchCollab=''; |