labrocadabro / communitytaught

MIT License
78 stars 31 forks source link

Deploy preview links on PR #55

Open nmpereira opened 7 months ago

nmpereira commented 7 months ago

Depending on what platform you are using to host the app, you can add deploy previews to the PR so a user/PR approver doesnt have to pull code and run it to see if it works.

For example, netlify has a deploy preview link integration: image

Render also has the same image

nmpereira commented 7 months ago

What platform is being used to host the app? Is the front and backend hosted on the same platform?

If the current platform doesnt support the above, you can use render platform to deploy previews, but use whatever the current platform is, for prod.

Thats what i use for CommunityFocus, the deploy-previews run on render (free and they go to sleep after inactivity), and railway.app for production (which doesnt go to sleep, but would potentially cost me money if there's a lot of previews running)

Example for CommunityFocus: https://github.com/CommunityFocus/cf-backend/pull/70

labrocadabro commented 7 months ago

An excellent suggestion, thank you. I'll look into it.

The site doesn't really have a separate front and backend. I didn't use React or any other front end framework/library to keep it closer to what people would be familiar with from 100Devs. I thought it would make it easier for people to contribute without being all the way through the classes. Pug was probably a mistake though. :/

The site's on fly.io for now, but that could change in the future.

labrocadabro commented 7 months ago

Paused, for the same reasons as #54.