Coder Social home page Coder Social logo

bootleg_phoenix's People

Contributors

brienw avatar holetse avatar sitch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootleg_phoenix's Issues

Support Phoenix 1.3

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.digest fails with error

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:

  • Clean build workspace
  • Clean app workspace
  • 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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.