Re: Is there any tool that will auto publish my changes.

2018-07-16 Thread Venkat via Digitalmars-d-learn

Thankyou Ali.

Timoses.

I did try DiamondMVC for a bit, but I found that there is more 
help out there for Vibe.d. So I reverted back to using that. And 
the Dependency Injection in Diamond MVC brings all the obscurity 
that spring has which makes debugging more of a guessing game 
than a logical derivation.


My application isn't that big, so compile times aren't unbearable 
yet. And server restart, boy server starts under 10 seconds, 
unimaginable in java world !!!


Static files are already reloaded automatically on edit.

But edit, compile, restart cycle times do add up over a period. 
Not to mention the entire process is redundant and therefore a 
good candidate for automation. Anyway, thankyou for the insight. 
I'll have to admit I am not equipped with the knowledge to whip 
something up like that myself (yet ?).


Absence of such a tool nevertheless doesn't diminish the pleasure 
of developing with D, dub, vibe.d, DDBC and HibernateD. Thanks to 
developers of those tools.


Thanks evilrat.


Re: Is there any tool that will auto publish my changes.

2018-07-16 Thread aliak00 via Digitalmars-d-learn

On Monday, 16 July 2018 at 08:28:06 UTC, Timoses wrote:

On Sunday, 15 July 2018 at 00:25:22 UTC, Venkat wrote:

[...]


I don't believe there currently exists a tool to rebuild the 
Diet templates on the fly. The Diet templates require a step 
during compilation (I think), so that the entire application 
has to be rebuilt (at least the part that has the diet 
templates).
If you have a large project, what I've heard from others what 
they do, is split the project into smaller pieces and can 
therefore have shorter compilation times [1].


There's also DiamondMVC which you could try depending on your 
use case [2], though I haven't tried it out myself.


[1] 
https://forum.dlang.org/post/txgoxzroscysfbvio...@forum.dlang.org

[2] https://github.com/DiamondMVC/Diamond


There's this open issue in the vibed repo as well -> 
https://github.com/vibe-d/vibe.d/issues/676


and a script in the comments that may help what I have not tried 
out.


Cheers,
- Ali


Re: Is there any tool that will auto publish my changes.

2018-07-16 Thread Timoses via Digitalmars-d-learn

On Sunday, 15 July 2018 at 00:25:22 UTC, Venkat wrote:
I am writing a simple vibe.d app. The following is what I do 
right now.


- I make changes.
- build
- Restart the server.

Is there any tool that will auto publish my changes as I save 
them ? I am using Visual Studio Code.


Thanks
Venkat


I don't believe there currently exists a tool to rebuild the Diet 
templates on the fly. The Diet templates require a step during 
compilation (I think), so that the entire application has to be 
rebuilt (at least the part that has the diet templates).
If you have a large project, what I've heard from others what 
they do, is split the project into smaller pieces and can 
therefore have shorter compilation times [1].


There's also DiamondMVC which you could try depending on your use 
case [2], though I haven't tried it out myself.


[1] 
https://forum.dlang.org/post/txgoxzroscysfbvio...@forum.dlang.org

[2] https://github.com/DiamondMVC/Diamond


Re: Is there any tool that will auto publish my changes.

2018-07-16 Thread evilrat via Digitalmars-d-learn

On Sunday, 15 July 2018 at 00:25:22 UTC, Venkat wrote:
I am writing a simple vibe.d app. The following is what I do 
right now.


- I make changes.
- build
- Restart the server.

Is there any tool that will auto publish my changes as I save 
them ? I am using Visual Studio Code.


Thanks
Venkat


I don't think there are ready to use tools exists. But you can 
try to making (simple) one for your needs, for example using this 
package[1] to track file changes, then kill running instance, 
build and restart. Or doing the same with python/java/c#/whatever


[1] https://code.dlang.org/packages/fswatch



Re: Is there any tool that will auto publish my changes.

2018-07-15 Thread Venkat via Digitalmars-d-learn
An extension to the question. Is something like auto publish that 
even possible ? Or the dumb guy from java world don't know what 
he talkin' 'bout ?


Is there any tool that will auto publish my changes.

2018-07-14 Thread Venkat via Digitalmars-d-learn
I am writing a simple vibe.d app. The following is what I do 
right now.


- I make changes.
- build
- Restart the server.

Is there any tool that will auto publish my changes as I save 
them ? I am using Visual Studio Code.


Thanks
Venkat