Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJohn Nguyen
Full Stack JavaScript Techdegree Graduate 30,501 PointsUpdate: You need to specify build folder when running netlify deploy
Due to updated to the netlify-cli, it doesn't ask you for the build folder anymore. So you have to specify the build folder when you run netlify deploy like this:
netlify deploy --dir=build
So the manual deploy process for netlify should look something like this:
- npm run build
- netlify deploy --dir=build
- specify few things like team & proj name
- review test deploy to ensure things look good
- netlify depoy --dir=build --prod
2 Answers
Seokhyun Wie
Full Stack JavaScript Techdegree Graduate 21,606 PointsJohn Nguyen Thanks. It was constantly in a loading state when I just type netlify deploy
and type in some details. It works perfect now!
Raf L
Front End Web Development Techdegree Graduate 23,500 PointsThis whole section needs to be updated and to alert us to check teacher's notes or something 😓
John Nguyen
Full Stack JavaScript Techdegree Graduate 30,501 PointsJohn Nguyen
Full Stack JavaScript Techdegree Graduate 30,501 PointsBrandon Wie Awesome!! I'm glad I could help you bud! =)