mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
task: tidy example environment template
Move this away from project root and into docs area. CONTRIBUTING file updated to match.
This commit is contained in:
+3
-2
@@ -34,6 +34,7 @@
|
||||
[coverage-url]: https://coveralls.io/r/nightscout/cgm-remote-monitor?branch=master
|
||||
[discord-img]: https://img.shields.io/discord/629952586895851530?label=discord%20chat
|
||||
[discord-url]: https://discord.gg/rTKhrqz
|
||||
[example-env-template]: docs/example-template.env
|
||||
|
||||
## Translations
|
||||
|
||||
@@ -49,7 +50,7 @@ Nightscout is a Node.js application. The basic installation of the software for
|
||||
dependency installation has to be done using a non-root user - _do not use root_ for development and hosting
|
||||
the software!
|
||||
3. Get a Mongo database by either installing Mongo locally, or get a free cloud account from mLab or MongoDB Atlas.
|
||||
4. Configure Nightscout by copying `my.env.template` to `my.env` and run it - see the next chapter in the instructions
|
||||
4. Configure Nightscout by copying [`docs/example-template.env`][example-env-template] to `my.env` and run it - see the next chapter in the instructions
|
||||
|
||||
## Develop on `dev`
|
||||
|
||||
@@ -57,7 +58,7 @@ We develop on the `dev` branch. All new pull requests should be targeted to `dev
|
||||
|
||||
You can get the `dev` branch checked out using `git checkout dev`.
|
||||
|
||||
Once checked out, install the dependencies using `npm install`, then copy the included `my.env.template`file to `my.env` and edit the file to include your settings (like the Mongo URL). Leave the `NODE_ENV=development` line intact. Once set, run the site using `npm run dev`. This will start Nightscout in the development mode, with different code packaging rules and automatic restarting of the server using nodemon, when you save changed files on disk. The client also hot-reloads new code in, but it's recommended to reload the website after changes due to the way the plugin sandbox works.
|
||||
Once checked out, install the dependencies using `npm install`, then copy the included [`docs/example-template.env`][example-env-template] to `my.env` file to `my.env` and edit the file to include your settings (like the Mongo URL). Leave the `NODE_ENV=development` line intact. Once set, run the site using `npm run dev`. This will start Nightscout in the development mode, with different code packaging rules and automatic restarting of the server using nodemon, when you save changed files on disk. The client also hot-reloads new code in, but it's recommended to reload the website after changes due to the way the plugin sandbox works.
|
||||
|
||||
Note the template sets `INSECURE_USE_HTTP` to `true` to enable the site to work over HTTP in local development.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user