提交 3e9a7d5a 编写于 作者: F Florent Vilmart

Adds dotenv to load configurations

上级 8c0a4430
......@@ -363,6 +363,10 @@ $ PORT=8080 parse-server --appId APPLICATION_ID --masterKey MASTER_KEY
For the full list of configurable environment variables, run `parse-server --help`.
#### Using a `.env` file
The parse-server CLI can use [dotenv](https://www.npmjs.com/package/dotenv) to load environment variables from a `.env` file.
### Available Adapters
All official adapters are distributed as scoped pacakges on [npm (@parse)](https://www.npmjs.com/search?q=scope%3Aparse).
......
此差异已折叠。
try {
require('dotenv').config();
} catch(e) { /**/ }
import definitions from './definitions/parse-live-query-server';
import runner from './utils/runner';
import { ParseServer } from '../index';
......
/* eslint-disable no-console */
try {
require('dotenv').config();
} catch(e) { /**/ }
import ParseServer from '../index';
import definitions from './definitions/parse-server';
import cluster from 'cluster';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册