modified portgenerator-for-deploy.sh