4
4
[ ![ Gem Version] ( https://badge.fury.io/rb/spring.svg )] ( http://badge.fury.io/rb/spring )
5
5
6
6
Spring is a Rails application preloader. It speeds up development by
7
- keeping your application running in the background so you don't need to
7
+ keeping your application running in the background, so you don't need to
8
8
boot it every time you run a test, rake task or migration.
9
9
10
10
## Features
57
57
58
58
On platforms where Spring is installed and supported, this snippet
59
59
hooks Spring into the execution of commands. In other cases, the snippet
60
- will just be silently ignored and the lines after it will be executed as
60
+ will just be silently ignored, and the lines after it will be executed as
61
61
normal.
62
62
63
63
If you don't want to prefix every command you type with ` bin/ ` , you
@@ -179,7 +179,7 @@ Spring is running:
179
179
```
180
180
181
181
There's no need to "shut down" Spring. This will happen automatically
182
- when you close your terminal. However if you do want to do a manual shut
182
+ when you close your terminal. However, if you do want to do a manual shut
183
183
down, use the ` stop ` command:
184
184
185
185
```
@@ -371,7 +371,7 @@ application restart, you can specify them with `Spring.watch`:
371
371
Spring .watch " config/some_config_file.yml"
372
372
```
373
373
374
- By default Spring polls the filesystem for changes once every 0.2 seconds. This
374
+ By default, Spring polls the filesystem for changes once every 0.2 seconds. This
375
375
method requires zero configuration, but if you find that it's using too
376
376
much CPU, then you can use event-based file system listening by
377
377
installing the
@@ -391,24 +391,24 @@ Spring.quiet = true
391
391
392
392
The following environment variables are used by Spring:
393
393
394
- * ` DISABLE_SPRING ` - If set, Spring will be bypassed and your
394
+ * ` DISABLE_SPRING ` - If set, Spring will be bypassed, and your
395
395
application will boot in a foreground process
396
396
* ` SPRING_LOG ` - The path to a file which Spring will write log messages
397
397
to.
398
398
* ` SPRING_TMP_PATH ` - The directory where Spring should write its temporary
399
- files (a pidfile and a socket). By default we use the
399
+ files (a pidfile and a socket). By default, we use the
400
400
` XDG_RUNTIME_DIR ` environment variable, or else ` Dir.tmpdir ` , and then
401
401
create a directory in that named ` spring-$UID ` . We don't use your
402
402
Rails application's ` tmp/ ` directory because that may be on a
403
403
filesystem which doesn't support UNIX sockets.
404
404
* ` SPRING_APPLICATION_ID ` - Used to identify distinct Rails
405
- applications. By default it is an MD5 hash of the current
405
+ applications. By default, it is an MD5 hash of the current
406
406
` RUBY_VERSION ` , and the path to your Rails project root.
407
407
* ` SPRING_SOCKET ` - The path which should be used for the UNIX socket
408
408
which Spring uses to communicate with the long-running Spring server
409
- process. By default this is ` SPRING_TMP_PATH/SPRING_APPLICATION_ID ` .
409
+ process. By default, this is ` SPRING_TMP_PATH/SPRING_APPLICATION_ID ` .
410
410
* ` SPRING_PIDFILE ` - The path which should be used to store the pid of
411
- the long-running Spring server process. By default this is related to
411
+ the long-running Spring server process. By default, this is related to
412
412
the socket path; if the socket path is ` /foo/bar/spring.sock ` the
413
413
pidfile will be ` /foo/bar/spring.pid ` .
414
414
* ` SPRING_SERVER_COMMAND ` - The command to run to start up the Spring
0 commit comments