comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Ada/GNAT/AWS-friendly web hosting
Date: Thu, 12 Sep 2024 16:48:40 +0200	[thread overview]
Message-ID: <vbuv07$a2ta$1@dont-email.me> (raw)
In-Reply-To: <vbutl5$8a99$5@dont-email.me>

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

  reply	other threads:[~2024-09-12 14:48 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-12 14:25 Ada/GNAT/AWS-friendly web hosting Marius Alves
2024-09-12 14:48 ` J-P. Rosen [this message]
2024-09-12 14:54 ` DrPi
2024-09-12 17:06   ` J-P. Rosen
2024-09-12 17:16     ` Kevin Chadwick
2024-09-12 22:35     ` Lawrence D'Oliveiro
2024-09-13  6:46       ` J-P. Rosen
2024-09-14  6:38       ` Randy Brukardt
2024-09-12 22:40   ` Lawrence D'Oliveiro
2024-09-12 16:22 ` Jeffrey R.Carter
2024-09-12 22:29   ` Lawrence D'Oliveiro
2024-09-13  9:03     ` Jeffrey R.Carter
2024-09-12 18:48 ` Dmitry A. Kazakov
2024-09-13 13:15 ` Stéphane Rivière
2024-09-13 14:33 ` Björn Persson
2024-09-13 22:09   ` Lawrence D'Oliveiro
2024-09-14  7:01     ` Stéphane Rivière
2024-09-14  7:26       ` Lawrence D'Oliveiro
2024-09-14  8:51         ` Stéphane Rivière
2024-09-14  9:41           ` Lawrence D'Oliveiro
2024-09-14 10:29             ` Stéphane Rivière
2024-09-14 12:02               ` Kevin Chadwick
2024-09-14 13:00                 ` Stéphane Rivière
2024-09-14 14:34                   ` Jeffrey R.Carter
2024-09-14 16:11                     ` Stéphane Rivière
2024-09-14 18:04                       ` Jeffrey R.Carter
2024-09-13 17:36 ` Nioclás Pól Caileán de Ghloucester
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox