Skip to content

Instantly share code, notes, and snippets.

@bimmerlabs
Created February 28, 2018 14:48
Show Gist options
  • Save bimmerlabs/5d72482267f37567460cf7caa83cdfa3 to your computer and use it in GitHub Desktop.
Save bimmerlabs/5d72482267f37567460cf7caa83cdfa3 to your computer and use it in GitHub Desktop.
Mojolicious server batch file for Windows - runs on startup so you don't need a command prompt open all the time. Put a shortcut to myapp.vbs in the 'startup' folder, the actual myapp.vbs / deployment.bat files go in your app folder.
@echo off
perl C:\Users\yournamehere\myapp\myapp.pl daemon -m production
CreateObject("Wscript.Shell").Run "C:\Users\yournamehere\myapp\deployment.bat",0,True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment