Fork me on GitHub
#boot
<
2017-02-25
>
qqq06:02:48

is there any difference between: (1) (target FOO) (2) (target BAR) (sift to move from BAR to FOO) ? [some auto reloads are not happening; and I'm wondering if it's because target is creating temporary files which is confuing the monitor; in which case the sift would avoid this problem]

qqq07:02:34

is there a way, as part of the boot setup, to have it run a shell command?

qqq22:02:50

at the end of my (comp (watch) .... (target ..)) I want to execute a "touch appengine-web.xml"

qqq22:02:58

is there a builtin task for this?

qqq22:02:03

[this is to trigger a reload in jetty]

mobileink22:02:51

just do it before (target)

qqq22:02:13

don't you want to write the class files first before triggering reload?

qqq22:02:29

otherwise isn't there a potential race between (1) boot writing out new class files and (2) jetty reloading?

mobileink22:02:17

how does appengine-web matter?

qqq22:02:01

according to SO answers (and verified by manual trail/error), if you have a running dev_appserver.sh, and you want to restart it, you do so by touching appengine-web.xml

mobileink23:02:07

ok, but why do you want to restart the whole thing? what changes make you want to do that?

mobileink23:02:20

why do you need to write new class files, except when you're adding/removing a servlet?

mobileink23:02:51

or reconfiguring appengine? you rarely need that.

mobileink23:02:20

there's no point in "touching" anything. if you change it, everything will follow.

qqq23:02:08

@mobileink: when I modify + save a .clj file, it boot aots the modified .clj files, generating new *.class files howver, dev_appserver.sh does not automatically reload these files --- UNLESS I touch appengine-web.xml

qqq23:02:25

however, appengine-web.xml is NOT modified, so boot doesn't copy over a new appengine-web.xml

qqq23:02:43

thus, after the (target ... writes out the new *.class files, in order to have devappserver.sh reload my new servlets, I need to touch appengine-web.xml

mobileink23:02:52

i.e. if you have not changed appengine-web.xml, then what is the point of touching it? if you're only touching it to reload, then you're going it wrong.

mobileink23:02:31

ok. you're doing it wrong. 😉

mobileink23:02:35

hate to beat a dead horse, but boot-gae takes care of all that stuff.

mobileink23:02:27

explain to me why you ever need to aot more than once, please.

qqq23:02:24

dev_appserver.sh loads up servlets stored as *.classes this means every time I modify a *.clj file, I need to AOT it into a class so the running local gae server can load it up

qqq23:02:31

also, should we move this to #google-cloud ?

mobileink23:02:36

ok, #google-cloud