Question: How new js and hac files be used

View: New views
5 Messages — Rating Filter:   Alert me  

Question: How new js and hac files be used

by KLeite :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When a new javascript or hac file is created, I have to restart the app
before I can use the new functions/action.  When an existing javascript
or hac file is updated, Helma will notice and compile the newer
versions.  It would be nice if new files were handled the same way.  Is
there a configuration option that I am missing that allow this?

Thanks,
Kris

_______________________________________________
Helma-user mailing list
Helma-user@...
http://helma.org/mailman/listinfo/helma-user

Re: Question: How new js and hac files be used

by Chris Zumbrunn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Jan 21, 2008, at 19:56 , Kris Leite wrote:

> When a new javascript or hac file is created, I have to restart the  
> app
> before I can use the new functions/action.  When an existing  
> javascript
> or hac file is updated, Helma will notice and compile the newer
> versions.  It would be nice if new files were handled the same way.  
> Is
> there a configuration option that I am missing that allow this?

I never had this problem. Helma always notices file changes for me,  
even if the file is new.

Cheers,
Chris

_______________________________________________
Helma-user mailing list
Helma-user@...
http://helma.org/mailman/listinfo/helma-user

Re: Question: How new js and hac files be used

by KLeite :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Chris,

Thank you for quick response.  Odd that it does work for me.  I tried
again just now by copying a simple hac file that does returns a simple
text response to another file name.  The original works properly but
when I try to access the new hac, Helma returns to me: Error in
application dev, Object not found.  If I restart the app - dev, then the
hac file and respond correctly.  I do have the app.properties
synchOnStartup = true, would that have anything to do with it?

Thanks,
Kris

Chris Zumbrunn wrote:

> On Jan 21, 2008, at 19:56 , Kris Leite wrote:
>
>  
>> When a new javascript or hac file is created, I have to restart the  
>> app
>> before I can use the new functions/action.  When an existing  
>> javascript
>> or hac file is updated, Helma will notice and compile the newer
>> versions.  It would be nice if new files were handled the same way.  
>> Is
>> there a configuration option that I am missing that allow this?
>>    
>
> I never had this problem. Helma always notices file changes for me,  
> even if the file is new.
>
> Cheers,
> Chris
>
> _______________________________________________
> Helma-user mailing list
> Helma-user@...
> http://helma.org/mailman/listinfo/helma-user
>
>  
_______________________________________________
Helma-user mailing list
Helma-user@...
http://helma.org/mailman/listinfo/helma-user

Re: Question: How new js and hac files be used

by Chris Zumbrunn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Jan 21, 2008, at 20:37 , Kris Leite wrote:

> Thank you for quick response.  Odd that it does work for me.  I tried
> again just now by copying a simple hac file that does returns a simple
> text response to another file name.  The original works properly but
> when I try to access the new hac, Helma returns to me: Error in
> application dev, Object not found.  If I restart the app - dev, then  
> the
> hac file and respond correctly.  I do have the app.properties
> synchOnStartup = true, would that have anything to do with it?

I have no idea. What does synchOnStartup do? It's not even  
documented :-(

Chris

_______________________________________________
Helma-user mailing list
Helma-user@...
http://helma.org/mailman/listinfo/helma-user

Re: Question: How new js and hac files be used

by KLeite :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Chris,

Interesting question.  I did a scan of the source code and other files
and could not find anything about it.  The app.properties file that I
have has the following text:

# syncOnStartup: If set to true, then layouts and static directories
# will be sync'ed during startup. This should be set to true for a
# development setup, and can be set to 'false' for a production setup
# to increase startup-time.

syncOnStartup = true

Maybe I got an old file from some old app of Helma.  I don't remember
where I found this option but it appears not be useful.  Either that I
got mixed up with some other software system.  Odd...

Anyway, I have removed it out of my app.properties file but this issue
still remains.  I guess I need to start looking at the code that is
checking for changes and see what is going on.  Thank you for pointing
that out.

Thanks,
Kris



Chris Zumbrunn wrote:

> On Jan 21, 2008, at 20:37 , Kris Leite wrote:
>
>  
>> Thank you for quick response.  Odd that it does work for me.  I tried
>> again just now by copying a simple hac file that does returns a simple
>> text response to another file name.  The original works properly but
>> when I try to access the new hac, Helma returns to me: Error in
>> application dev, Object not found.  If I restart the app - dev, then  
>> the
>> hac file and respond correctly.  I do have the app.properties
>> synchOnStartup = true, would that have anything to do with it?
>>    
>
> I have no idea. What does synchOnStartup do? It's not even  
> documented :-(
>
> Chris
>
> _______________________________________________
> Helma-user mailing list
> Helma-user@...
> http://helma.org/mailman/listinfo/helma-user
>
>  
_______________________________________________
Helma-user mailing list
Helma-user@...
http://helma.org/mailman/listinfo/helma-user