Is there a task runner for meteor ? I mean something like rake for Rails. I need to run a script with access to the meteor server environment (ie like running a script inside a meteor shell)
Have a look to this post : Use Meteor JS to write command line tool?
And it refers to this page : http://practicalmeteor.com/writing-command-line-programs-with-meteor/
Related
At the moment jenkins exports the html reports through publishReports but I am unable to see all the colors and so on, my question is if it's possible to insert this command:
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")
through a scripted pipeline and how, because I do not have access in script console or the settings of jenkins.
only way to act on jenkins "System" is to use the groovy script console. From a pipeline you could do an API call.
https://wiki.jenkins.io/pages/viewpage.action?pageId=42470125
However the simplest thing to configure jenkins with code is to load groovy script on startup with the help of folder $JENKINS_HOME/init.groovy.d/
https://wiki.jenkins.io/display/JENKINS/Post-initialization+script
cd ~/my-package
meteor test-packages ./
open localhost:3000
I can't seem to use the JS console: Even though Meteor can be logged from a client test file, when I enter it in the console, I get VM10740:1 Uncaught ReferenceError: Meteor is not defined. Same goes for other objects like Accounts.
I'd like access to these variables and those defined in my package and tests file in order to debug my tests.
EDIT: In the client test file, this works:
window.Meteor = Meteor
window.Accounts = Accounts
...
Is there a better way? Or at least a way that automatically goes through all globals? Trying this caused a refresh loop: _.extend(window, this)
I need to run a shell command, that will call the script file that I have written in RUBY
For eg: Lets say, I have a file.sh in my working directory, How can I execute this file using TideSDK( I tried Using the Process)
Titanium Desktop createProcess to run shell script
Is there some other alternatives for this kind of stuffs in tideSDK?
Thanks
UPDATE:
I need to run the ruby script after a click of a button.
I think you don't need to run a process for that. TideSDK allows you to run other scripts like php, ruby and python directly in script tags. On the tag you just need to define the script on the type attribute: text/ruby
There ar several methods to include scripts on TideSDK. Take a look on the documentation at www.tidesdk.org. There is a section related to how to get started.
http://tidesdk.multipart.net/docs/user-dev/generated/#!/guide/using_ruby
I've an application that is published on meteor hosting using command :
meteor deploy spyermeteor
The application is rendered on http://spyermeteor.meteor.com but no data is used on client side.
I can see that application is running well on server-side if i do a :
meteor logs spyermeteor
I then check the browser console and i see that i can access database :
Annonces.find().count() // per exemple
How do you explain that reactivity doesn't work on client-side ? maybe something is wrong with my conception but on my computer (windows) and on a VM (Linux debian) it works well.
Any help is welcome.
The source code is available here http://www.github.com/Rebolon/spyerMeteor
In production mode all files are concatenated and minified into one javascript file. If there is even a slight syntax error somewhere in your code the rest of the code will not execute.
Looking at your deployed site you have to split your client and server side code. I receive an error
Uncaught ReferenceError: Npm is not defined
This is meant to only run on the server but the code where you use Npm is being run on the client when it should only run on the server. It would also cause an error in production mode but since the files are not concatenated & minified the error wouldn't stop other javascript files from running.
You can either move this code to a file in /server or into a if(Meteor.isServer) {..} block
It also looks like your code is made for <= Meteor 0.5.9. You should upgrade your local instance to 0.6.2 and look for all these exceptions in your js console before you deploy your app.
I wanted to know how to go about getting a MongoHQ db to work on my localhost installation of Meter.
i tried using the settings.json method or the MONGO_URL=mongodb://user:pass#xxxx.mongohq.com:10061/xxxx when firing up meteor but both dont work and are probably the wrong way of doing it.
run it like this in your terminal within your project directory
MONGO_URL=mongodb://user:pass#xxxx.mongohq.com:10061/xxxx meteor
or
export MONGO_URL=mongodb://user:pass#xxxx.mongohq.com:10061/xxxx
meteor