Update files in target directory

29 views
Skip to first unread message

sreekanth...@gmail.com

unread,
Jun 26, 2018, 3:31:26 PM6/26/18
to Lift
HI All,

I'm using lift 3.x with scala 2.10.3 and sbt  1.0.

I see that when the webserver delivers the files under src/main/webapp/ to the client, it makes a copy of the file and keeps in "target" folder under same directory path (target/webapp in this case). But the problem that I see even if the source file changes, webserver continues to deliver the file in "target" folder. Is there someway for webserver to update the file in "target" folder if the source file changes?

sreekanth

Matt Farmer

unread,
Jun 26, 2018, 3:34:44 PM6/26/18
to lif...@googlegroups.com
Have you tried running jetty with a tilde before the command?

~jetty:start

--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sreekanth...@gmail.com

unread,
Jun 26, 2018, 3:56:50 PM6/26/18
to Lift
Yes.. I am doing this.

echo jetty:start | ~/bin/sbt

sreekanth

Diego Medina

unread,
Jun 26, 2018, 4:25:07 PM6/26/18
to Lift
Hi

It's sometimes easy to miss, but from Matt's reply, note the   ~    before jetty, that tells sbt to do what you are expecting

so, once you are inside sbt, make sure to type


~jetty:start


Hope it helps




To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

sreekanth...@gmail.com

unread,
Jun 27, 2018, 9:39:00 AM6/27/18
to Lift
Yes. That works.. Thanks Diego and Matt.
Reply all
Reply to author
Forward
0 new messages