|
Home > Archive > Macromedia Flash Server > April 2005 > Server scripts and restarts
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Server scripts and restarts
|
|
| Simon Lord 2005-04-07, 5:56 pm |
| Sorry if this is a report or is covered in Brian's book - I'm only on
chap 1...
Do modified scripts in scriptLib/ and applications/ *require* a
../server stop/start? I'm at the point where I'm constantly modifying
server side scripts and it seems to really upset the users when I
reboot the service out from under them. :P
I'm just wondering if there is some kind of "kick it in the pants"
script that wakes FCS up to the new changes.
Sincerely,
Simon
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Peldi Guilizzoni 2005-04-07, 5:56 pm |
| Welcome to the server-side!
Just reload the app-instance using the communication-app-inspector!
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org]
Sent: Wednesday, March 30, 2005 10:50 AM
To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
Subject: [FlashComm] Server scripts and restarts
Sorry if this is a report or is covered in Brian's book - I'm only on
chap 1...
Do modified scripts in scriptLib/ and applications/ *require* a
../server stop/start? I'm at the point where I'm constantly modifying
server side scripts and it seems to really upset the users when I
reboot the service out from under them. :P
I'm just wondering if there is some kind of "kick it in the pants"
script that wakes FCS up to the new changes.
Sincerely,
Simon
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| JesterXL 2005-04-07, 5:56 pm |
| To add to that, if you manually create the app instance, and then select it
in the App Inspector, and then go to detail; when you reload it, you'll see
allof your init traces too.
----- Original Message -----
From: "Peldi Guilizzoni" <gguilizzoni-14osZcCZf762oZ/6fjIToQ@public.gmane.org>
To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Wednesday, March 30, 2005 1:52 PM
Subject: RE: [FlashComm] Server scripts and restarts
Welcome to the server-side!
Just reload the app-instance using the communication-app-inspector!
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org]
Sent: Wednesday, March 30, 2005 10:50 AM
To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
Subject: [FlashComm] Server scripts and restarts
Sorry if this is a report or is covered in Brian's book - I'm only on
chap 1...
Do modified scripts in scriptLib/ and applications/ *require* a
../server stop/start? I'm at the point where I'm constantly modifying
server side scripts and it seems to really upset the users when I
reboot the service out from under them. :P
I'm just wondering if there is some kind of "kick it in the pants"
script that wakes FCS up to the new changes.
Sincerely,
Simon
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Simon Lord 2005-04-07, 5:56 pm |
| Hehe, aahhhhh that's so much better. Thanks guys.
On Mar 30, 2005, at 2:13 PM, JesterXL wrote:
> To add to that, if you manually create the app instance, and then
> select it
> in the App Inspector, and then go to detail; when you reload it,
> you'll see
> allof your init traces too.
>
> ----- Original Message -----
> From: "Peldi Guilizzoni" <gguilizzoni-14osZcCZf762oZ/6fjIToQ@public.gmane.org>
> To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
> Sent: Wednesday, March 30, 2005 1:52 PM
> Subject: RE: [FlashComm] Server scripts and restarts
>
>
> Welcome to the server-side!
> Just reload the app-instance using the communication-app-inspector!
>
>
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org]
> Sent: Wednesday, March 30, 2005 10:50 AM
> To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> Subject: [FlashComm] Server scripts and restarts
>
> Sorry if this is a report or is covered in Brian's book - I'm only on
> chap 1...
>
> Do modified scripts in scriptLib/ and applications/ *require* a
> ./server stop/start? I'm at the point where I'm constantly modifying
> server side scripts and it seems to really upset the users when I
> reboot the service out from under them. :P
>
> I'm just wondering if there is some kind of "kick it in the pants"
> script that wakes FCS up to the new changes.
>
> Sincerely,
> Simon
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
Sincerely,
Simon
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Jim Cheng 2005-04-07, 5:56 pm |
| Simon Lord wrote:
> Do modified scripts in scriptLib/ and applications/ *require* a ./server
> stop/start? I'm at the point where I'm constantly modifying server side
> scripts and it seems to really upset the users when I reboot the service
> out from under them. :P
I usually just reload the application instance(s) in question via the
Communication App Inspector. All you do is select the instance, click
the View Detail button and then click Reload App.
The reloaded application instance will use the current .asc files. The
only downsides are that all client connections are broken during the
reload and any run-time data stored in variables are lost, but this
should still be much better than restarting your entire server.
If this causes problems for you, these minor annoyances can be worked
around relatively easily by building client applications that'll attempt
to immediately reconnect if they've lost their connections and by
storing persistent data into server-side shared objects so they won't be
lost on application or server shutdown.
And if you're really brave....
As FCS features a full-fledged ECMAScript interpreter, you can also
define and/or redefine functions at run-time. Many Flash developers
might not realize this, as the Flash Player doesn't support such
semantics. It only understands pre-compiled Actionscript bytecode
machine and doesn't come with a built-in interpreter or compiler.
For instance, on the FCS server-side Actionscript, you can do this:
application.onAppStart = function() {
trace('onAppStart');
// Create a function at run-time via the function constructor!
var bar = new Function('trace("foo");');
// Now you can call it!
bar();
}
Jim
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Jake Hilton 2005-04-07, 5:56 pm |
| The application that uses them will need to be restarted for the change to =
take effect because if the instantiation of the code when the app loads. =
At least that is my experience.
Jake
[vbcol=seagreen]
Sorry if this is a report or is covered in Brian's book - I'm only on=20
chap 1...
Do modified scripts in scriptLib/ and applications/ *require* a=20
../server stop/start? I'm at the point where I'm constantly modifying=20
server side scripts and it seems to really upset the users when I=20
reboot the service out from under them. :P
I'm just wondering if there is some kind of "kick it in the pants"=20
script that wakes FCS up to the new changes.
Sincerely,
Simon
=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com=20
=3D-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|
|
|
|
|