Thread overview
How to run vibe.d web app in XAMPP server ?
Jan 15, 2018
Jayam
Jan 15, 2018
Brian
Jan 15, 2018
welkam
Jan 15, 2018
singingbush
January 15, 2018
In our production server, we have only XAMPP for use to deploy web app and mysql combinedly?
Is there any way how to deploy the vibe.d web app into XAMPP ?
January 15, 2018
On Monday, 15 January 2018 at 06:22:13 UTC, Jayam wrote:
> In our production server, we have only XAMPP for use to deploy web app and mysql combinedly?
> Is there any way how to deploy the vibe.d web app into XAMPP ?

You can use hunt framework, it's an full-stack web framework.

Create project:

```D
git clone https://github.com/huntlabs/hunt-skeleton.git myproject
cd myproject
dub run -v
```

Open the URL with the browser:

```bash
http://localhost:8080/
```

Github repo:

https://github.com/huntlabs/hunt
January 15, 2018
On Monday, 15 January 2018 at 06:22:13 UTC, Jayam wrote:
> Is there any way how to deploy the vibe.d web app into XAMPP ?

No you cant deploy vibe.d web app into XAMPP. What you can do is to install vibe.d to the same server and tell apache to proxy all requests to vibe.d.

I dont know enough about servers to tell you exactly how to do it but it should be the same as setting up node.js.
https://stackoverflow.com/questions/9831594/apache-and-node-js-on-the-same-server

I hope this helps


January 15, 2018
On Monday, 15 January 2018 at 06:22:13 UTC, Jayam wrote:
> In our production server, we have only XAMPP for use to deploy web app and mysql combinedly?
> Is there any way how to deploy the vibe.d web app into XAMPP ?

To use Apache to proxy requests to your D app do something along these lines:

Configure a Virtual Host for use with the application:

sudo vim /etc/apache2/sites-available/yoursite.conf

using the following content:
<VirtualHost *:80>
    ServerAdmin webmaster@example.com
    ServerName example.com
    ServerAlias www.example.com

    ErrorLog /var/log/apache2/yoursite-error.log
    CustomLog /var/log/apache2/yoursite-access.log common

    ProxyRequests off
    ProxyPreserveHost off
    ProxyPass / http://127.0.0.1:8080
    ProxyPassReverse / http://127.0.0.1:8080

</VirtualHost>

Then make sure to enable the relevant mods and your site

sudo a2enmod proxy proxy_http
sudo a2ensite yoursite

Verfiy the Apache config with apachectl configtest then restart:

sudo systemctl restart apache2