You must be using an ESP-01 to have to jump through all those hoops. WeMos or NodeMCU are your friend or if you really need to use the ESP-01, I highly recommend the little programmers.
Als
w/ GUI Admin Client, Drag & Drop File Manager, OTA Built-In, Access Point Manager,
Performance Metrics, Web Socket Comms, App API, All running on ESP8266...
Even usable on ESP-01S --- Please check it out!
https://inqonthat.com/inqportal-the-three-line-promise/
https://InqOnThat.com/inqportal