project-rainstorm / rainstorm

The easiest way to own your cloud. Your data. Your cloud. Rainstorm.
Other
10 stars 5 forks source link

[SETUP] Production server reflects source changes #104

Open nullcount opened 3 years ago

nullcount commented 3 years ago

Modify the setup_production.sh script to allow a process for developing with the production server.

Yarn has to rebuild the source for it to be available to nginx. Perhaps, add a yarn script to package.json to allow a simple watch and build.

Gunicorn may already apply changes to the API. Try it out and perhaps see if it offers a watch option if not already working as expected.

The new development setup would be to run the yarn watch script, and tail the gunicorn logs to see flask output.