How to slove the ports problem while tranferring the code to the esp 32

Error: Please specify upload_port for environment or use global --upload-port option.
For some development platforms it can be a USB flash drive (i.e. /media//)
*** [upload] Explicit exit, status 1

Please post the content of your platformio.ini using pre-formatted text.