productboard / webpack-deploy Goto Github PK
View Code? Open in Web Editor NEWCollection of useful utilities for deploying (not only) Webpack apps
License: MIT License
Collection of useful utilities for deploying (not only) Webpack apps
License: MIT License
Hi,
I'm trying to use this module, but I can't get it working. First of all, the documentation lacks a lot of information on how to get this working. I'm guessing this is sort of like ember-cli-deploy
, where you insert the HTML into Redis, which you can then use to host the static webapp from Express or something similar, or have I misunderstood the use of this module?
Anyhow, when I'm trying to use the deploy script, it is looking for hashes in the build log. But I can't find a way to have webpack create such a build log. I can't find any documentation on how to make it work.
Do you have an example project setup I can look at?
Ahoj kluci!
I ran into issue while trying out this plugin. It seems like source maps are required by this task.
This doesn't seem right since not every compiler has support for source map generation.
This is full log:
$ ./node_modules/.bin/deploy staging
Environment: ▇▇▇▇▇▇
Deploying branch ▇▇▇▇▇▇
Detected 1 build app versions:
bfb▇▇▇▇▇▇▇▇▇▇▇▇: log
[21:43:44] Using config file ▇▇▇▇▇▇/deploy-config.js
[21:43:44] Using gulpfile ▇▇▇▇▇▇/webpack-deploy/gulpfile.js
[21:43:44] Starting 'deploy-s3'...
[21:43:44] Finished 'deploy-s3' after 38 ms
[21:43:44] Using config file ▇▇▇▇▇▇/deploy-config.js
[21:43:45] Using gulpfile ▇▇▇▇▇▇/node_modules/webpack-deploy/gulpfile.js
[21:43:45] Starting 'rollbar-source-map'...
[21:43:45] 'rollbar-source-map' errored after 320 μs
[21:43:45] TypeError: Cannot read property 'files' of undefined
at uploadAppVersions (▇▇▇▇▇▇/node_modules/webpack-deploy/tasks/rollbar-source-map.js:72:23)
at ▇▇▇▇▇▇/node_modules/webpack-deploy/tasks/rollbar-source-map.js:175:5
at module.exports.getRevision (▇▇▇▇▇▇/node_modules/webpack-deploy/tasks/utils.js:39:69)
at Gulp.<anonymous> (/▇▇▇▇▇▇/node_modules/webpack-deploy/tasks/rollbar-source-map.js:174:3)
at module.exports (/Users/marek/Developer/pro-next/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (▇▇▇▇▇▇node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (▇▇▇▇▇▇/node_modules/orchestrator/index.js:214:10)
at Gulp.Orchestrator.start (▇▇▇▇▇▇/node_modules/orchestrator/index.js:134:8)
at ▇▇▇▇▇▇/node_modules/gulp/bin/gulp.js:129:20
at _combinedTickCallback (internal/process/next_tick.js:67:7)
I'm using node 6.9.4 & webpack 1.12.15 but I don't think this is version specific.
build.log
was generated by $ webpack >> build.log
. App written in elm-lang (using webpack-elm).
I didn't dig deeper into issue yet - Do you think it will be easy patch or bigger story?
Thanks for publishing this package anyway! 🚀
As @LeZuse suggested in his PR review (#42), we should revisit the whole implementation and eventually deprecated gulp
maybe even bash
files.
I think it would be great to revisit the original project assumption /README.md@
master
#why-bash-with-gulp.
IMO, the landscape changed significantly in the last 4 years and it would maybe make sense to deprecate gulp altogether. I would definitely be up for something like oclif/oclif
Batch deploy.sh
is broken now.
Workaround:
$ npm run build
$ deploy-s3 --env=staging
$ rollbar-source-map --env=staging
$ deploy-redis --env=staging
$ activate-rev --env=staging --rev=[your_revison]
Or use version <= v0.6.0:
npm i [email protected]
TODO:
Tried to run sudo npm run deploy-s3
npm ERR! missing script: deploy-s3
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/mrmading/.npm/_logs/2017-07-01T08_06_40_149Z-debug.log
Hi,
I'm following your Readme and when I come to running the listed commands it's not found.
I might be missing something obvious though, but I have for example tried with:
$ deploy-redis development
-bash: deploy-redis: command not found
$ gulp deploy-redis development
[22:10:52] No gulpfile found
I know I don't have a gulpfile, but do I need to add it and require something there?
Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.