Welche Änderungen muss ich vornehmen, um einen erfolgreichen Build auszuführen und meine Website auf bluemix zu hosten?Bereitstellen und Ausführen von grunt Server auf IBM bluemix
Im Moment ist dies meine Gruntfile.js, manifest.yml und package.json. Der Basisordner 'App' ist eine Schräg Anwendung -
module.exports = function(grunt){
grunt.initConfig({
connect: {
server: {
options: {
port: 9000,
base: 'app',
keepalive: true,
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.registerTask('default', ['connect']);
};
package.json
:
{
"name": "dummy",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {"grunt-cli": "^1.2.0",
"grunt": "^0.4.5",
"grunt-contrib-connect": "^0.10.1"
}
}
manifest.yml
:
---
applications: #Reference http://docs.cloudfoundry.com/docs/using/deploying-apps/manifest.html
- name: dummy #Application Name. Unique to the user's Space
memory: 256M #The maximum memory to allocate to each application instance
instances: 1 #The number of instances of the application to start
path: ./ #Path to the application to be pushed
command: npm install && node_modules/.bin/grunt serve #The command to use to start the application
Haben Sie schon versucht, die App auf Bluemix zu schieben? Welche Fehler hast du bekommen oder was hat nicht funktioniert? – opiethehokie
Starten Sie Ihre Anwendung mit dem Befehl: "node_modules/.bin/grunt serve", um das Problem zu lösen. https://developer.ibm.com/answers/questions/25856/how-to-deploy-a-web-app-based-on-grunt/ – vmovva
Anscheinend habe ich keine Knoten_Module ....... –