Launching stack on server - launcher password protected
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Launching stack on server - launcher password protected
So I created a stack (launcher stack) to launch another stack (app) on the server.
The launcher stack, if password protected, won't launch the stack on the server. If the password is removed it will.
Can you not password protect your launcher stack?
The launcher stack, if password protected, won't launch the stack on the server. If the password is removed it will.
Can you not password protect your launcher stack?
-
- VIP Livecode Opensource Backer
- Posts: 10053
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Launching stack on server - launcher password protected
How does one "launch" a stack on a server?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Launching stack on server - launcher password protected
Why are you messing with me? You probably don't drink, but I'm going to ask you anyway. Are you drinking?FourthWorld wrote:How does one "launch" a stack on a server?

Perhaps I should've worded my question a little different to incorporate the correct lingo.
Code: Select all
go stack url "http://yourdomain.com/practice/stack.livecode"
-
- VIP Livecode Opensource Backer
- Posts: 10053
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Launching stack on server - launcher password protected
I enjoy a single malt now and then, but today it's just Arnold Palmer.shawnblc wrote:Why are you messing with me? You probably don't drink, but I'm going to ask you anyway. Are you drinking?FourthWorld wrote:How does one "launch" a stack on a server?![]()
LiveCode Server is increasingly popular, and there are ways to use stacks as libraries on a server, or as daemon processes, or as custom servers under GUIs, and more - with all those options I wasn't sure what you were after, but I'm always learning new things people do with LiveCode so it seemed worth asking.
For downloading a file to run on the client it looks like you found it:
That's a very, very useful thing. Most of the work I've doing right now is with downloaded stacks in client-server setups. I'm surprised more people don't use it more often; few things are this easy and powerful at the same time.Code: Select all
go stack url "http://yourdomain.com/practice/stack.livecode"
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Launching stack on server - launcher password protected
Awesome Richard. Thanks for all you do.
-
- VIP Livecode Opensource Backer
- Posts: 10053
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Launching stack on server - launcher password protected
I've found it wonderfully convenient to take advantage of LC's built-in gzip compression with downloaded stack files.
Here's a handler that will handle both compressed and uncompressed stacks, if the compressed ones have a file name ending in ".gz":
The URL there may also be of interest: it's a simple LC stack I keep in my Plugins folder that will compress any file dropped onto it, and add a .gz suffix to the compressed copy.
Here's a handler that will handle both compressed and uncompressed stacks, if the compressed ones have a file name ending in ".gz":
Code: Select all
on mouseUp
GoStack "http://www.fourthworld.net/revnet/devolution/4W_gzipper.mc.gz"
end mouseUp
on GoStack pURL
put url pURL into tStackData
-- Try to decompress .gz files:
if char -3 to -1 of pURL = ".gz" then
try
put decompress(tStackData) into tStackData
catch tErr
answer "Corrupted gzip data in URL ""e& pURL "e
exit to top
end try
end if
--
go stack tStackData
end GoStack
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Launching stack on server - launcher password protected
Ok, now I'm confused even more;
Is that true?
Simon
So you are running a stack ON a server? Something likeThe URL there may also be of interest: it's a simple LC stack I keep in my Plugins folder that will compress any file dropped onto it, and add a .gz suffix to the compressed copy.
Code: Select all
<lc? on dragDrop
compress the dragData["files"]
pass dragDrop
end dragDrop ?>
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- VIP Livecode Opensource Backer
- Posts: 10053
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Launching stack on server - launcher password protected
I can't imagine how one would get a server to emulate a drag. The utility at the URL I posted was just for compressing stacks locally before posting them to the server for others to download.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Launching stack on server - launcher password protected
Oh OK!
Thought there was a miracle happening.

Simon
Thought there was a miracle happening.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!