Giter Club home page Giter Club logo

Comments (9)

chirino avatar chirino commented on July 16, 2024

+1

from fabric8.

jstrachan avatar jstrachan commented on July 16, 2024

once a fabric's created, dev:watch * works a treat; its more for fabric creation really we need this

from fabric8.

iocanel avatar iocanel commented on July 16, 2024

dev:watch is something that generally works even without creating fabric, isn't that enough?

from fabric8.

jstrachan avatar jstrachan commented on July 16, 2024

@iocanel thanks!

I just tried it; there's a bug I'm working on in fabric-core; tried rebuilding it, stopped the fabric container; deleted data directory, started it up, did *dev:watch *" - it doesn't recognise I've rebuilt it.
It seems ordering is important; you have to stop, clear out and restart the fabric container then do 'dev:watch *" before doing any other builds for fabric-core? Unless its just some glitch here locally?

I'd prefer a dev mode which was a little less clumsy really; as right now I'm in a constant loop of

  • hack code
  • try create a fabric / child containers

and if feels a bit clumsy right now. I'll try persevere with dev:watch * though; and try get in the habit of restarting & dev:watch * first before building anything.

from fabric8.

jstrachan avatar jstrachan commented on July 16, 2024

hmm - dev:watch * did spot a recompile this time of fabric-core, but not fabric-api; "dev:watch *" does seem a little unreliable unless you are doing a build after you've typed "dev:watch *"

from fabric8.

jstrachan avatar jstrachan commented on July 16, 2024

ah - dev:watch * doesn't seem to help at all for creating child containers? even when the root container correctly recognises a rebuilt fabric-core, the old one is used in the child container

from fabric8.

jstrachan avatar jstrachan commented on July 16, 2024

wonder if there's a way to enable dev:watch * to be enabled by default in the local build of fabric; so it works on startup of both a root container and children?

from fabric8.

iocanel avatar iocanel commented on July 16, 2024

dev:watch command is something that only works on the local container.
The closest alternative we currently have that can propagate changes cluster-wide is fabric:profile-refresh (a command that will trigger the fabric-agent to all containers using this profile, resulting in the update of recent SNAPSHOT dependencies from the local maven repo).

Maybe we could work on combining the two in such a way that whenever we use dev:watch inside fabric, instead of updating the local bundles, we bump the profile to trigger the fabric-agent like profile-refresh does).

NOTE: Regardless of how we finally implement it, we should always be aware of the fact that some utility classes are not imported/exported but embeeded to the jars as private packages. In those cases just building the jar that hosts the utility classes will not help, untill we also build the jars that embeed those (example: ZooKeeperUtils).

from fabric8.

jstrachan avatar jstrachan commented on July 16, 2024

BTW we have fabric:watch * now too - which works across containers. Not sure it helps when you need to reload fabric-core though

from fabric8.

Related Issues (20)

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.