Re: How to run vibe.d web app in XAMPP server ?

2018-01-15 Thread singingbush via Digitalmars-d

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:

ServerAdmin webmas...@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



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


Re: How to run vibe.d web app in XAMPP server ?

2018-01-15 Thread welkam via Digitalmars-d

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




Re: How to run vibe.d web app in XAMPP server ?

2018-01-15 Thread Brian via Digitalmars-d

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


How to run vibe.d web app in XAMPP server ?

2018-01-14 Thread Jayam via Digitalmars-d
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 ?