Chas,
Why dont you simply use property configuration based on the run mode?
Cheers, Tim
On Feb 23, 5:42 am, Charles F. Munat c...@munat.com wrote:
I am doing file uploads to several of my sites. Right now, I've hard
coded the path to the directory to which the files are saved. This is a
Sorry, let me clarify that a bit more with an example... could you not
dynamically set the upload path based on run mode?
http://github.com/dpp/liftweb/blob/1bf23d21dff2a752b8b53ce96a83ba5d8da075bb/sites/example/src/main/scala/bootstrap/liftweb/Boot.scala#L211
Cheers, Tim
On Feb 23, 1:26 pm,
You wouldn't be hard coding it per say, the actual value would be
either held in an external config file, or passed as a system property
I.e -Drun.mode=staging
Check out Props in net.liftweb.util
Otherwise, I'm not sure if there is a way of getting the expanded war
path or whatever... Not that
Several times now when I've left a page with Ajax checkboxes and
textboxes sitting for a while, and then when I've gone to check a box
or type in a textbox, there is no response from the server. In the
console window, I see nothing unusual.
Sometimes I used to get could not reach server
Paul,
This can result from a number of things:
- The process that's running your web app gets swapped out on the
server. If you're running on Linux, this is less likely to happen if you
have enough RAM. I've seen Windows swamp processes out so it can run the
screen saver.
- Your
David: I think you are probably right that it is something external
to lift or scala as it seems to be intermittent, happening sometimes
but not others under what seem to be the same circumstances.
The server process is on a mac book pro laptop for now and it may well
be getting swapped out
On Mon, Feb 23, 2009 at 3:55 PM, Paul O'Rorke p...@ororke.com wrote:
David: I think you are probably right that it is something external
to lift or scala as it seems to be intermittent, happening sometimes
but not others under what seem to be the same circumstances.
The server process is
Yes, even tho I wasn't living in Silicon Valley at the time, I did
learn about virtual memory as a kid and then again in operating
systems courses well before I got my Ph.D. in C.S. ;).
I just did a little experiment where I waited patiently this time
after not getting an immediate response and