That's basically what we do with https://www.makeitwithcode.com, we take people through building things and teach them theory as they go along. Then we go through deploying something to Heroku etc as part of subsequent lessons, so by the end they've got a mixture of the theoretical stuff as well as the more practical "how do I make this be on the internet".
I think there's a few others which also follow the approach of each lesson essentially culminating in a new portfolio piece.
on the homepage bottom-right it says:
The course costs just $200. If, during the course, you feel you're not getting value for money, we'll give you a refund.
You'll get a lesson a week for 10 weeks. The lessons are text-format, combining a balance of challenges with instruction.
I think there's a few others which also follow the approach of each lesson essentially culminating in a new portfolio piece.