Tutorial by Examples: n

One favored approach to deploying to a server is to use Git or GitHub. This basically involves logging into your server, moving to the directory you want to run your app from, then cloning your files directly from GitHub. You then build your app on the server. This approach ensures that platform spe...
Alternatively, you may want to build your application, and then deploy it.. cd myapp meteor build --directory ../output cd .. scp output -r username@destination_host:/var/www/myapp-production
You'll need an upstart script in your /etc/init/ directory. Name it with your app's name, ending in .conf, such as /etc/init/myapp.conf. The basic upstart script looks something like this: ## /etc/init/myapp.conf description "myapp.mydomain.com" author "[email protected]&quot...
Finally, you'll need to start the Upstart daemon, and initialize your app as a service. sudo service myapp start
https://www.phusionpassenger.com/ https://github.com/phusion/passenger https://github.com/phusion/passenger/wiki/Phusion-Passenger:-Meteor-tutorial#wiki-installing
You'll need to add debugger statements to your code: Meteor.methods({ doSomethingUself: function(){ debugger; niftyFunction(); } });
For server side debugging, you'll need to use a tool like Node Inspector. Before you get started, check out some of these useful tutorials. HowToNode - Debugging with Node Inspector Strongloop - Debugging Applications Easily Debugging Meteor.js Walkthrough with Screenshots of Using Node Inspecto...
Besides Node Inspector, some people have reported success with a npm utility called debug. MeteorHacks - Debugging Meteor with npm debug
Meteor Dump Meteor Toys Constellation Meteor DevTools
Static server assets must be placed in the private directory. Text files Text files can be accessed by using the Assets.getText(assetPath, [asyncCallback]) method. For example, the following JSON file is named my_text_asset.json and is located in the private directory: { "title": &...
// thecontroller.js $scope.sendVerifyEmail = function() { console.log('Email sent, whaaaaam!'); currentAuth.sendEmailVerification(); } // where currentAuth came from something like this: // routerconfig .... templateUrl: 'bla.html', resolve: { currentAuth:['Auth', functio...
Ensure that you install the correct npm dependencies (babel decided to split itself into a bunch of packages, something to do with "peer dependencies"): npm install webpack webpack-node-externals babel-core babel-loader babel-preset-react babel-preset-latest --save webpack.config.js: mo...
This is very common, you memorize a path to a file or folder, you open up Vim and try to write what you've just memorized, but you are not 100% sure it's correct, so you close the editor and start over. When you want the path completion feature, and you have a file /home/ubuntu/my_folder/my_file a...
To delete some lines of text when you don't know exact number of lines to delete, you try 10dd , 5dd , 3dd until you remove all the lines. Relative line numbers solves this problem, suppose we have a file containing : sometimes, you see a block of text. You want to remove it but you cannot d...
The following command executes :command on lines 23 to 56: :23,56command NB: Ranges are inclusive by default.
In the following command the range starts 6 lines above the current line and ends 3 lines below: :-6,+3command
. represents the current line but it can also be omitted entirely. $ represents the last line. % represents the whole buffer, it is a shortcut for 1,$. The two commands below execute :command on every file from the current line to the last line: :.,$command :,$command The command below e...
Line offsets can be used to adjust the start and end lines: :/foo/-,/bar/+4command " from the line above next 'foo' to 4 lines below next 'bar' See :help search-offset.
It's possible to combine all of the above into expressive ranges: :1267,/foo/-2command :'{,command :'f,$command Be creative and don't forget to read :help cmdline-ranges.
SELECT DISTINCT ContinentCode FROM Countries; This query will return all DISTINCT (unique, different) values from ContinentCode column from Countries table ContinentCodeOCEUASNAAF SQLFiddle Demo

Page 363 of 1088