labzero / bootleg_phoenix Goto Github PK
View Code? Open in Web Editor NEWProvides Phoenix-specific Bootleg tasks.
License: MIT License
Provides Phoenix-specific Bootleg tasks.
License: MIT License
Currently Phoenix 1.3 is not supported due to the change in location of package.json
. The package should detect which version of Phoenix is in use, and appropriately handle the different package.json
locations.
Phoenix will use webpack in the next release phoenixframework/phoenix#2779
The digest task does not succeed due to an assumed dev
Mix environment.
It is not immediately obvious because errors are being squelched.
To repro:
mix bootleg.build
Expected: a priv/static/manifest.json
exists in the build
Occurred: no manifest is generated and no assets are minified and compressed
Log output:
[target ] cd /tmp/bootleg/build && /usr/bin/env [ -f brunch-config.js ] && [ -d node_modules ] && ./node_modules/brunch/bin/brunch b -p || true
[target ] 02 Aug 08:23:40 - info: compiling
[target ] 02 Aug 08:23:44 - info: compiled 6 files into 2 files, copied 3 in 7.5 sec
[target ] cd /tmp/bootleg/build && /usr/bin/env [ -d deps/phoenix ] && mix phoenix.digest || true
Phoenix asset digest generated
To reveal the actual error being raised:
task :phoenix_digest do
remote :build do
"npm install"
"./node_modules/brunch/bin/brunch b -p"
"mix phoenix.digest"
end
UI.info "Phoenix asset digest generated"
end
after_task :compile, :phoenix_digest
[target ] cd /tmp/bootleg/build && /usr/bin/env mix phoenix.digest
** (SSHError) Command exited on target with non-zero status (1)
cmd: mix phoenix.digest
stderr: Unchecked dependencies for environment dev:
* phoenix_live_reload (Hex package)
stderr: the dependency is not available, run "mix deps.get"
stderr: ** (Mix) Can't continue due to errors on dependencies
Once MIX_ENV
is set correctly:
[target ] cd /tmp/bootleg/build && /usr/bin/env npm install
[target ] cd /tmp/bootleg/build && /usr/bin/env ./node_modules/brunch/bin/brunch b -p
[target ] 02 Aug 08:29:44 - info: compiling
[target ] 02 Aug 08:29:48 - info: compiled 6 files into 2 files, copied 3 in 7.6 sec
[target ] cd /tmp/bootleg/build && /usr/bin/env MIX_ENV=prod mix phoenix.digest
[target ] Check your digested files at "priv/static"
Phoenix asset digest generated
Note the additional line above that indicates success:
Check your digested files at "priv/static"
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.