Greenheart / swipeforfuture.com

Solving the climate crisis, one swipe at a time 🌍🔥
https://swipeforfuture.com
GNU General Public License v3.0
6 stars 1 forks source link

Combine dev servers into a single url for easy development #170

Closed Greenheart closed 3 years ago

Greenheart commented 3 years ago

To simplify development and not have to type the full URL like http://192.168.0.64:3000/play?path=http://192.168.0.64:5000/default.json on mobile devices, we could combine the dev servers into a single one.

I will look into building scenarios into the web/static/dev-only directory during development to allow them to be accessible from the same static server. This will allow us simplify the project config for development and remove some dependencies, making the project lighter to run in dev mode.

This should not affect how scenarios are built for production, as they should still be built into content/dist to be able to be deployed separately.

TODO:

Greenheart commented 3 years ago

Resolved with https://github.com/Greenheart/swipeforfuture.com/commit/6e004424a36cd5a9a1cc6fe92d662f0c527b5754 and related previous commits! 🎉