digitalmars.D.learn - Is there any tool that will auto publish my changes.
- Venkat (9/9) Jul 14 2018 I am writing a simple vibe.d app. The following is what I do
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
Jul 14 2018
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 ?
Jul 15 2018
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 VenkatI 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, [1] https://code.dlang.org/packages/fswatch
Jul 15 2018
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 VenkatI 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/txgoxzroscysfbviofnu forum.dlang.org [2] https://github.com/DiamondMVC/Diamond
Jul 16 2018
On Monday, 16 July 2018 at 08:28:06 UTC, Timoses wrote:On Sunday, 15 July 2018 at 00:25:22 UTC, Venkat wrote: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[...]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/txgoxzroscysfbviofnu forum.dlang.org [2] https://github.com/DiamondMVC/Diamond
Jul 16 2018
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.
Jul 16 2018