Какие изменения мне необходимо сделать, чтобы на самом деле запустить успешную сборку и разместить мой сайт на bluemix?Развертывание и запуск сервера grunt на IBM bluemix
Прямо сейчас, это мои Gruntfile.js, manifest.yml и package.json. Базовая папка 'приложение' является Угловая приложение -
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
Вы уже пробовали нажать приложение в Bluemix? Какие ошибки вы получили или что не работает? – opiethehokie
Запуск приложения с помощью команды: «node_modules/.bin/grunt serve» может решить вашу проблему. https://developer.ibm.com/answers/questions/25856/how-to-deploy-a-web-app-based-on-grunt/ – vmovva
По-видимому, у меня нет узлов_модулей ....... –