Remove deprecated dry option

This commit is contained in:
loicsaintroch 2016-01-27 09:06:42 +01:00
parent 1d1cba79a5
commit b11ae67e01
4 changed files with 1 additions and 29 deletions

View File

@ -50,21 +50,6 @@ You now are able to use the Strapi CLI. Simply create your first application and
$ strapi new <appName>
```
Note that you can generate a dry application using the `dry` option:
```bash
$ strapi new <appName> --dry
```
This will generate a Strapi application without:
- the built-in `user`, `email` and `upload` APIs,
- the `grant` hook,
- the open-source admin panel,
- the Strapi Studio connection (`studio` hook disabled).
This feature allows you to only use Strapi for your HTTP server structure if you want to.
### Start your application
```bash

View File

@ -64,9 +64,6 @@ module.exports = function (strapi) {
workers: os.cpus().length
},
// Application is not `dry` by default.
dry: false,
// Default paths.
paths: {
tmp: '.tmp',

View File

@ -37,12 +37,6 @@ module.exports = function (strapi) {
delete hooks.studio;
}
// Remove undesired hooks when this is a `dry` application.
if (strapi.config.dry) {
delete hooks.grant;
delete hooks.studio;
}
// Handle folder-defined modules (default to `./lib/index.js`)
// Since a hook definition must be a function.
if (_.isObject(hookPrototype) && !_.isArray(hookPrototype) && !_.isFunction(hookPrototype)) {

View File

@ -48,11 +48,7 @@ module.exports = function start(configOverride, cb) {
if (cluster.isMaster) {
self.log.info('Server started in ' + self.config.appPath);
self.log.info('Your server is running at ' + self.config.url);
if (!self.config.dry) {
self.log.info('Your admin panel is available at ' + self.config.url + '/admin/');
}
self.log.info('Your admin panel is available at ' + self.config.url + '/admin/');
self.log.debug('Time: ' + new Date());
self.log.debug('Environment: ' + self.config.environment);
self.log.debug('Process PID: ' + process.pid);