deploy to web
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 30
- Joined: Mon Apr 13, 2020 8:46 am
deploy to web
Ok, so I am getting ready to deploy, I am using "Save as standalone application .."
I create a super simple app that has a button, which has answer "hello world" in its mouseUp event
simple, right?
I have a few question:
1. the size is HUGE, I got a 40Mb installation which takes 5 seconds to download on local host (!!!)
2. I am getting even for this no brainer web app errors in my console (see image below)
3. actually loading a more complex app doesn't work at all.
am I going the wrong way ?
is deploying to web really an idea that's not useful ?
has anyone deployed a real world app in web ?
I'd love to hear tips and tricks ...
I create a super simple app that has a button, which has answer "hello world" in its mouseUp event
simple, right?
I have a few question:
1. the size is HUGE, I got a 40Mb installation which takes 5 seconds to download on local host (!!!)
2. I am getting even for this no brainer web app errors in my console (see image below)
3. actually loading a more complex app doesn't work at all.
am I going the wrong way ?
is deploying to web really an idea that's not useful ?
has anyone deployed a real world app in web ?
I'd love to hear tips and tricks ...
Re: deploy to web
Hi foosmaster,
https://forums.livecode.com/viewtopic.p ... 79#p190379
please only one thread per topic!
So I'm going delete one of them, which one shall I delete?
Best
Klaus
https://forums.livecode.com/viewtopic.p ... 79#p190379
please only one thread per topic!
So I'm going delete one of them, which one shall I delete?
Best
Klaus
Re: deploy to web
I'm going to preface my abysmal lack of knowledge in this arena by flat out stating I have an abysmal lack of knowledge with this part of the Lc feature set, aside from (as you did) some very simple testing run locally.
The size is huge, but then, I think that about most parts of the engine / standalone sizes. As I understand it, the bulk of the size in this case comes from including not only Lc's engine, but also emsripten's bits and pieces. I'm not in full understanding of how all *that* was put together.
No clue there, I received no such error warnings the last time I played with it, however, that was at least a couple of years ago.
Then I would have to guess that something is going wrong, the question is where.
I grouped the above 3 because the real answer is "It depends".
Deploying to the web could have a LOT of different ways to be accomplished, outside of the HTML feature in Lc. Richard had a fascinating take on it that actually works out shockingly well, you create a basic standalone, the guts are stored online. There is also Lc server.
Whether or not someone has deployed a real world app in web would depend on your take on a real world app.
-hh has probably pushed the HTML thing about as far as it could possibly go. He has made (among other things) an IDE based on it. That would be (to me) probably about the most complicated idea I'd ever think about putting on the web. Is it the fastest web based IDE I've ever seen? No, but I find it an amazing feat none the less. IMHO, it certainly would qualify as a "Real world app", and far exceeds the simple "Hello world" status.
I'd look through the thread I linked too, some of the stuff he has in there is jaw dropping.
Code: Select all
1. the size is HUGE, I got a 40Mb installation which takes 5 seconds to download on local host (!!!)
Code: Select all
2. I am getting even for this no brainer web app errors in my console (see image below)
Code: Select all
3. actually loading a more complex app doesn't work at all.
Code: Select all
am I going the wrong way ?
is deploying to web really an idea that's not useful ?
has anyone deployed a real world app in web ?
Deploying to the web could have a LOT of different ways to be accomplished, outside of the HTML feature in Lc. Richard had a fascinating take on it that actually works out shockingly well, you create a basic standalone, the guts are stored online. There is also Lc server.
Whether or not someone has deployed a real world app in web would depend on your take on a real world app.
-hh has probably pushed the HTML thing about as far as it could possibly go. He has made (among other things) an IDE based on it. That would be (to me) probably about the most complicated idea I'd ever think about putting on the web. Is it the fastest web based IDE I've ever seen? No, but I find it an amazing feat none the less. IMHO, it certainly would qualify as a "Real world app", and far exceeds the simple "Hello world" status.
I'd look through the thread I linked too, some of the stuff he has in there is jaw dropping.
-
- Posts: 30
- Joined: Mon Apr 13, 2020 8:46 am
Re: deploy to web
sorry - should have deleted the one on the other thread since there's no real HTML 5 support there - trying to get answers hereKlaus wrote: ↑Wed Apr 29, 2020 11:08 amHi foosmaster,
https://forums.livecode.com/viewtopic.p ... 79#p190379
please only one thread per topic!
So I'm going delete one of them, which one shall I delete?
Best
Klaus
I'll see if I can delete that one - feel free to delete the other thread - thanks and sorry again
Re: deploy to web
OK, it's gone!
-
- Posts: 30
- Joined: Mon Apr 13, 2020 8:46 am
Re: deploy to web
the question I have here is why even the simplest example
generates error on save to web - I've went through the tutorial herer http://lessons.livecode.com/m/4071/l/80 ... on-the-web but got the same errors - tried in ubuntu, windows, both generate console errors shown in the first image, so I am thinking ... I must be doing something wrong if this is useable.
I can start adding components and see when things start to break, but I feel very discouraged considering even my hello world example seems broken.
I guess something very simple in my settings is not right.
even downloading the Zip from the lesson of livecode and saving it as HTML generates the same console errors:
this doesn't encourage me to dig further - unless I get the basics right
maybe because I am working on a different livecode version ? (9.5.1)
I am seeing setting that aren't there in the lesson ... so - how can I find out which version were they using in the lesson ?
thanks a lot
Code: Select all
on mouseUp pMouseButton
answer "hello world"
end mouseUp
I can start adding components and see when things start to break, but I feel very discouraged considering even my hello world example seems broken.
I guess something very simple in my settings is not right.
even downloading the Zip from the lesson of livecode and saving it as HTML generates the same console errors:
this doesn't encourage me to dig further - unless I get the basics right
maybe because I am working on a different livecode version ? (9.5.1)
I am seeing setting that aren't there in the lesson ... so - how can I find out which version were they using in the lesson ?
thanks a lot