Windows - Flask API Automation
Windows - Flask API Automation
To create a sh file open a fresh text file and save it as with .sh extension. In that file paste the below.
Remember you need the prior experience in deploying things manually earlier. In below explained
the above commands functionality
1) First we need to activate our environment. For that as per the windows deployment document we
navigate to created environment first and then will activate it. Here we follow all together which
means the same.
6) Terminal waits 5 seconds after the successful deployment since we need to check the successful
deployment message to confirm ourself
For reference purpose the above commands manipulated with sample directory. Note it will change
as per the individual /server systems
Next is to create a bat file, open a fresh text file and save is as .bat extension & paste the below
@echo off
title ML_autostart_API
2) In start mention the git-bash executable file path followed by the sh file created earlier, with the
respective name
2) In start mention the git-bash executable file path followed by the sh file created earlier with the
respective name. To find the executable file folder go to operating system drive and search for git
Remember both files should be in the same directory else it won’t work at all.
Automating Flask API in windows
If you’re worrying to follow the commands in further deployments you may create the executable
file using above guidance and by simply clicking the bat file execute the application further
3) It will open a specific folder in file explorer, Paste the both sh and bat file in that path now the
above commands what we’ve done is automatically executed in system startup. In every restart we
don’t need to start the application further