Deutsch   English   Français   Italiano  
<vbuv07$a2ta$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: "J-P. Rosen" <rosen@adalog.fr>
Newsgroups: comp.lang.ada
Subject: Re: Ada/GNAT/AWS-friendly web hosting
Date: Thu, 12 Sep 2024 16:48:40 +0200
Organization: Adalog
Lines: 59
Message-ID: <vbuv07$a2ta$1@dont-email.me>
References: <vbutl5$8a99$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 12 Sep 2024 16:48:40 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="892e32e502bd4c76484f8e29e6e548c5";
	logging-data="330666"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18QtyyzcbOLIEwxWPT8pxyb"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+gry9EmRMv/NQUKE3SyYWkrMNkE=
Content-Language: en-US, fr
In-Reply-To: <vbutl5$8a99$5@dont-email.me>
Bytes: 2962

Le 12/09/2024 à 16:25, Marius Alves a écrit :
> Researching how to build an HTTP server (serving a website) on a local 
> machine (MacOS) using AWS (Ada Web Server) and deploy it on a web 
> hosting provider (e.g. 1dollar-webhosting.com).
> 
> Anyone done that? I've searched but could not find.
Adalog's site (https://www.adalog.fr/) is a standalone program written 
in Ada with AWS.

So are the sites for the various Ada-Europe conferences (see 
https://www.ada-europe.org/conference2024/ for example).

And many others...

> 
> Thanks.
> _____
> 
> Some specific questions on my mind follow.
> 
> Is a MacOS host required (e.g. Ultahost 15 euros/month; I'd rather stay 
> with 1dollar)?
No

> If the host runs on Linux then cross-building (from MacOS to Linux) 
> required, right? GNAT does that, right?
Never tried, but no reason it shouldn't be possible

> Or, must the program be built in the host? (Thus requiring GNAT be there.)
That's what I do

> The host is already running an HTTP server program (probably Apache). 
> Must it be turned off? How?
Of course, you cannot have two programs listening on the same port, so 
if you want to listen to 80 or 8080, you'd better stop Apache (or any 
other program) to do that. As for me, I don't run Apache at all.

> In general, can the executable be launched on a VPS (Virtual Private 
> Server)? Which port?
The port is given by the initial data of AWS

> Will dynamic linking work? I'm guessing not, so, static; but then, will 
> GNAT integrate the right libraries for Linux in the executable?
You just compile your program like any other Ada program

> Will "Community GNAT" do? (Instead of GNAT Pro.)
Yes, that's what I do

> Are those the right questions?
All questions are right....

> Thanks, thanks, thanks, thanks, thanks, thanks and thanks.
You're welcome

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
https://www.adalog.fr https://www.adacontrol.fr