@Delawere

Как задеплоить gulp проект на heroku?

Добрый день.
Пытаюсь выложить проект собранный на gulp на heroku. До этого делал тоже самое через create-react-app, но там все из коробки работает, поэтому проблем не было)
Добавил postinstall в свой package.json, пробовал также добавлять в scripts
"start": "gulp"
Проект не деплоится, в консоли висит
remote:        [Browsersync] Couldn't open browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false)
remote:        [Browsersync] Reloading Browsers... (buffered 2 events)

Если совсем убрать browserSync то все пройдет нормально, но проект на удаленном адресе все равно не появляется.
Подозреваю, что так это вообще работать не будет. Гуглил по тексту ошибки (предпоследняя строка в логах) - менял порт, менял браузер - толку нет.
Ниже полный текст package.json и логи после git push heroku master

{
  "name": "personal_page",
  "version": "1.0.0",
  "description": "",
  "main": "gulpfile.js",
  "dependencies": {
    "browser-sync": "^2.26.5",
    "gulp": "^4.0.2",
    "normalize.less": "^1.0.0",
    "readable-stream": "^3.4.0"
  },
  "devDependencies": {
    "babel-core": "^6.26.3",
    "babel-preset-env": "^1.7.0",
    "gulp-autoprefixer": "^6.1.0",
    "gulp-babel": "^7.0.1",
    "gulp-concat": "^2.6.1",
    "gulp-less": "^4.0.1",
    "gulp-pug": "^4.0.1",
    "gulp-server-livereload": "^1.9.2",
    "gulp-uglify": "^3.0.2",
    "gulp-watch": "^5.0.1"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "postinstall": "gulp"
  },
  "author": "",
  "license": "ISC"
}


Enumerating objects: 176, done.
Counting objects: 100% (176/176), done.
Delta compression using up to 4 threads
Compressing objects: 100% (141/141), done.
Writing objects: 100% (176/176), 2.45 MiB | 1.15 MiB/s, done.
Total 176 (delta 63), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Node.js app detected
remote:        
remote: -----> Creating runtime environment
remote:        
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote:        NODE_VERBOSE=false
remote:        
remote: -----> Installing binaries
remote:        engines.node (package.json):  unspecified
remote:        engines.npm (package.json):   unspecified (use default)
remote:        
remote:        Resolving node version 10.x...
remote:        Downloading and installing node 10.16.0...
remote:        Using default npm version: 6.9.0
remote:        
remote: -----> Installing dependencies
remote:        Installing node modules (package.json + package-lock)
remote:        
remote:        > core-js@2.6.9 postinstall /tmp/build_26136cb4bda021d8b7a19771972cf8b1/node_modules/core-js
remote:        > node scripts/postinstall || echo "ignore"
remote:        
remote:        
remote:        > personal_page@1.0.0 postinstall /tmp/build_26136cb4bda021d8b7a19771972cf8b1
remote:        > gulp
remote:        
remote:        [10:40:31] Using gulpfile /tmp/build_26136cb4bda021d8b7a19771972cf8b1/gulpfile.js
remote:        [10:40:31] Starting 'default'...
remote:        [10:40:31] Starting 'pug'...
remote:        [10:40:31] Starting 'less'...
remote:        [10:40:31] Starting 'scripts'...
remote:        [10:40:31] Finished 'pug' after 491 ms
remote:        [10:40:31] Finished 'scripts' after 566 ms
remote:        [10:40:31] Finished 'less' after 568 ms
remote:        [10:40:31] Starting 'server'...
remote:        [Browsersync] Access URLs:
remote:         --------------------------------------
remote:               Local: http://localhost:8080
remote:            External: http://172.16.73.134:8080
remote:         --------------------------------------
remote:                  UI: http://localhost:3001
remote:         UI External: http://localhost:3001
remote:         --------------------------------------
remote:        [Browsersync] Serving files from: ./build
remote:        [Browsersync] Couldn't open browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false)
remote:        [Browsersync] Reloading Browsers... (buffered 2 events)
  • Вопрос задан
  • 182 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы