When creating a new community account without credit and try to deploy an app this error message appears
“Application could not be deployed”
I had no information why so I checked the response of API requests :
“No remaining credit - your applications are no longer working until you add credits. Go to referral settings to gain credits.”
You should display this message instead of generic error message.