Re: vibe.d Subdirectory?

2015-01-15 Thread Adam D. Ruppe via Digitalmars-d-learn
If your php stores sessions in files, you can just read those files from D. Though that's horribly slow and I don't think php does that by default any more. But it really depends on how the PHP is configured to see how easy it will be. It might just be a cookie to read then index into a

Re: vibe.d Subdirectory?

2015-01-15 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/14/15 11:31 AM, Laeeth Isharc wrote: To be very clear: in the simple case when you compile your vibe application from multiple source files and diet templates etc, and you will end up with an executable. This can act as a server directly, or you can make it an internal server on localhost

Re: vibe.d Subdirectory?

2015-01-15 Thread Dicebot via Digitalmars-d-learn
On Thursday, 15 January 2015 at 14:38:16 UTC, Steven Schveighoffer wrote: Pardon me for asking kind of a side question, but is there any online information on how to do this? I am contemplating migrating my in-house php-based application to vibe.d, but I wondered if I have to do it whole-sale

Re: vibe.d Subdirectory?

2015-01-15 Thread via Digitalmars-d-learn
On Thursday, 15 January 2015 at 14:38:16 UTC, Steven Schveighoffer wrote: vibe.d and php can share session data. But I also have no idea which server should be in front, and how to call one another ;) If you are going to replace php then you probably want to have the d-server in front and

Re: vibe.d Subdirectory?

2015-01-15 Thread Laeeth Isharc via Digitalmars-d-learn
On Thursday, 15 January 2015 at 14:38:16 UTC, Steven Schveighoffer wrote: On 1/14/15 11:31 AM, Laeeth Isharc wrote: To be very clear: in the simple case when you compile your vibe application from multiple source files and diet templates etc, and you will end up with an executable. This can

Re: vibe.d Subdirectory?

2015-01-15 Thread Steven Schveighoffer via Digitalmars-d-learn
Thanks everyone for the tips. -Steve

Re: vibe.d Subdirectory?

2015-01-14 Thread Laeeth Isharc via Digitalmars-d-learn
Actually I want to serve some JSON packed weather data (heck I also wrote my Global Climate Model partially in D and in C) - so I guess, I can use vibe.d to build a cgi. Cool. Do you incorporate the influence of solar activity via galactic rays / cloud formation and via volcanic activity?

Re: vibe.d Subdirectory?

2015-01-14 Thread Laeeth Isharc via Digitalmars-d-learn
On Wednesday, 14 January 2015 at 11:40:26 UTC, seany wrote: I am new to vibe.d and plying a bit with it. I notice, that in case of Apache, there is a root directory, often by default under /var/www or /srv/http (resp. ftp) if you are using linux, and then every time the client sends a

Re: vibe.d Subdirectory?

2015-01-14 Thread ketmar via Digitalmars-d-learn
On Wed, 14 Jan 2015 12:37:33 + seany via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: On Wednesday, 14 January 2015 at 12:25:12 UTC, ketmar via Digitalmars-d-learn wrote: just forgot about that crappy scripting stuff and write your code in D! Actually I want to serve

vibe.d Subdirectory?

2015-01-14 Thread seany via Digitalmars-d-learn
I am new to vibe.d and plying a bit with it. I notice, that in case of Apache, there is a root directory, often by default under /var/www or /srv/http (resp. ftp) if you are using linux, and then every time the client sends a request, apache looks in to the root directory, deduces the

Re: vibe.d Subdirectory?

2015-01-14 Thread Rikki Cattermole via Digitalmars-d-learn
On 15/01/2015 12:40 a.m., seany wrote: I am new to vibe.d and plying a bit with it. I notice, that in case of Apache, there is a root directory, often by default under /var/www or /srv/http (resp. ftp) if you are using linux, and then every time the client sends a request, apache looks in to

Re: vibe.d Subdirectory?

2015-01-14 Thread ketmar via Digitalmars-d-learn
On Wed, 14 Jan 2015 11:40:25 + seany via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: I am new to vibe.d and plying a bit with it. I notice, that in case of Apache, there is a root directory, often by default under /var/www or /srv/http (resp. ftp) if you are using

Re: vibe.d Subdirectory?

2015-01-14 Thread seany via Digitalmars-d-learn
On Wednesday, 14 January 2015 at 12:25:12 UTC, ketmar via Digitalmars-d-learn wrote: just forgot about that crappy scripting stuff and write your code in D! Actually I want to serve some JSON packed weather data (heck I also wrote my Global Climate Model partially in D and in C) - so I