mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 14:44:31 +00:00
Remove deprecated dry option
This commit is contained in:
parent
1d1cba79a5
commit
b11ae67e01
15
README.md
15
README.md
@ -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
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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)) {
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user