Deloying on Windwos IIS

29 views
Skip to first unread message

RichardR

unread,
Jun 8, 2019, 11:52:23 AM6/8/19
to amber-lang
Hi all,

I've upgraded my Amber app to version 0.23.
Ik works fine on the local filesystem and through the amber web server.

It also used to work on Windows 10 IIS, just serving the .js files.
I would copy the entire development folder to IIS and would also be able to start up the classic IDE.
Being able to start the IDE is an essential requirement, for education.
.
But now, when starting on IIS, some somewhere deep in 'amber initialize', somthing failes and my application is never started.
That's probably because it thinks it's running on an amber web server when it's not.
Does anyone know how to make it work? 
Maybe by making the development environment think it's running on a filesystem?

Cheers,
Richard

RichardR

unread,
Jun 8, 2019, 11:55:23 AM6/8/19
to amber-lang
PS Deploying with 'grunt deploy' does work.
But the app does not containt the IDE anymore then. 

Herby Vojčík

unread,
Jun 9, 2019, 5:27:12 AM6/9/19
to amber...@googlegroups.com, RichardR
On 8. 6. 2019 17:52, RichardR wrote:
> Hi all,
>
> I've upgraded my Amber app to version 0.23.

There's 0.24.0 out there already.

> Ik works fine on the local filesystem and through the amber web server.
>
> It also used to work on Windows 10 IIS, just serving the .js files.
> I would copy the entire development folder to IIS and would also be able
> to start up the classic IDE.
> Being able to start the IDE is an essential requirement, for education.
> .
> But now, when starting on IIS, some somewhere deep in 'amber
> initialize', somthing failes and my application is never started.
> That's probably because it thinks it's running on an amber web server
> when it's not.

It does not matter whether IIS or not, any server goes _to load the files_.

To save the files, PUT requests must save the files in the underlying
store, which is only thing which `amber serve` really adds to stock
servers (ranging from IIS to just `python -m SimpleHTTPServer 8000`
one-liner).

"Something fails" is too broad. Do you have any details about the error
(browser JS console should allow you to see the errors / expand the
stack / click on it to show where it failed in source)?

Herby

> Does anyone know how to make it work?
Actually, on the website (amber-lang.net) there is only legacy IDE, no
helios. But it is deployed in development mode there (and served with
nginx so no saving), and it loads fine. Same for "interactive tutorial"
subpage.

>
> Cheers,
> Richard

Herby

RichardR

unread,
Jun 9, 2019, 8:50:52 AM6/9/19
to amber-lang
Thanks for the quit reply, Herby
To make a test case, I started with a default project with the latest version of npm and amber (0.24).
And it *worked* again under IIS. :-)
So I must  have broke something along the way.
Will migratie my code to this.
 
Reply all
Reply to author
Forward
0 new messages