Grunt not working in IIS application - gruntjs

I am running an ASP. NET application and calling a batch file using Process.Start(). The file contains some grunt commands. On opening the file using Start.Process() I get an error saying "'grunt' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n". I have added nodejs and npm to the environment variable PATH. The same code works fine on Production server.

maybe that link can help you?
https://github.com/kanema/grunt-iis

Related

Understand backend in QtService

I wrote a daemon using Skycoder42/QtService.
It works when run from QtCteator but on the server, I get the below error
qtservice: No backend found for the name "standard"
In the project document, I can't find anything
what is the backend? How can I install the service and start it?
Finally, I find the solution:
We must copy the path/to/qt/gcc_64/plugins/servicebackends directory next to executable

Unable to see css in jenking html report

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

Meteor file on new created project is missing

I used meteor for the first time yesterday and i was doing well. Today i try to create an new project to follow some tutorials and it was impossible i was receiving this message.
'meteor' is not recognized as an internal or external command, operable program or batch file.
but when i try to create a project on C:\users\any\AppData\Local.meteor the project is successfully created, so i go inside the folder of my new project using cd newproject and then type meteor and now the meteor should start building application but nothing happening, i again receive the same message
'meteor' is not recognized as an internal or external command, operable program or batch file.
someone who can help?
You may fix this issue by adding %USERPROFILE%\AppData\Local\.meteor; to your PATH environment variable.

TFS The process cannot access the file because it is being used by another process

I have created an automated build process using TFS which builds a web application.
As part of this process a batch file is used to call ASP Merge to merge my web pages into one dll. I'm using the TFS activity, Invoke Process to do this.
The following is a screenshot of what is output in the TFS build window:
TFS Build Output
Does anyone have any idea how to troubleshoot this issue?
I solved this issue by removing the "Start /high /wait" command that I had in place to start the aspnet_merge tool in a separate window. The reason this was being done is because in a local script we were compiling the code files first using aspnet_compiler before running aspnet_merge.
I also had to split the rest of the file out into a different command file as it was deleting config files I needed.

[meteor][0.6.*] no data displayed whereas it's available in console

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.

Resources