get '/powerscript/list_dir' doget '/run/?:command?/?:args?' do
redirect url("/run/ls/-Name")
end
@command, @arguments = params[:captures]
powershell = 'C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe'
cmd = "#{powershell} #{@command} #{@arguments}"
status = settings.production? ? system(cmd) : puts(cmd)
haml :job_added
end
I have a Sinatra app that makes calls to powershell scripts so I require Windows. So what is the best way/app to run Sinatra in prod on Windows? Something that can be at least somewhat managed remotely, or at least restarted with powershell remoting. Any help would be appreciated.
--
You received this message because you are subscribed to the Google Groups "sinatrarb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sinatrarb+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.