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
56
56
57
57
On platforms where Spring is installed and supported, this snippet
58
58
hooks Spring into the execution of commands. In other cases, the snippet
59
- will just be silently ignored and the lines after it will be executed as
59
+ will just be silently ignored, and the lines after it will be executed as
60
60
normal.
61
61
62
62
If you don't want to prefix every command you type with ` bin/ ` , you
@@ -168,7 +168,7 @@ Spring is running:
168
168
```
169
169
170
170
There's no need to "shut down" Spring. This will happen automatically
171
- when you close your terminal. However if you do want to do a manual shut
171
+ when you close your terminal. However, if you do want to do a manual shut
172
172
down, use the ` stop ` command:
173
173
174
174
```
@@ -362,7 +362,7 @@ application restart, you can specify them with `Spring.watch`:
362
362
Spring .watch " config/some_config_file.yml"
363
363
```
364
364
365
- By default Spring polls the filesystem for changes once every 0.2 seconds. This
365
+ By default, Spring polls the filesystem for changes once every 0.2 seconds. This
366
366
method requires zero configuration, but if you find that it's using too
367
367
much CPU, then you can use event-based file system listening by
368
368
installing the
@@ -382,24 +382,24 @@ Spring.quiet = true
382
382
383
383
The following environment variables are used by Spring:
384
384
385
- * ` DISABLE_SPRING ` - If set, Spring will be bypassed and your
385
+ * ` DISABLE_SPRING ` - If set, Spring will be bypassed, and your
386
386
application will boot in a foreground process
387
387
* ` SPRING_LOG ` - The path to a file which Spring will write log messages
388
388
to.
389
389
* ` SPRING_TMP_PATH ` - The directory where Spring should write its temporary
390
- files (a pidfile and a socket). By default we use the
390
+ files (a pidfile and a socket). By default, we use the
391
391
` XDG_RUNTIME_DIR ` environment variable, or else ` Dir.tmpdir ` , and then
392
392
create a directory in that named ` spring-$UID ` . We don't use your
393
393
Rails application's ` tmp/ ` directory because that may be on a
394
394
filesystem which doesn't support UNIX sockets.
395
395
* ` SPRING_APPLICATION_ID ` - Used to identify distinct Rails
396
- applications. By default it is an MD5 hash of the current
396
+ applications. By default, it is an MD5 hash of the current
397
397
` RUBY_VERSION ` , and the path to your Rails project root.
398
398
* ` SPRING_SOCKET ` - The path which should be used for the UNIX socket
399
399
which Spring uses to communicate with the long-running Spring server
400
- process. By default this is ` SPRING_TMP_PATH/SPRING_APPLICATION_ID ` .
400
+ process. By default, this is ` SPRING_TMP_PATH/SPRING_APPLICATION_ID ` .
401
401
* ` SPRING_PIDFILE ` - The path which should be used to store the pid of
402
- the long-running Spring server process. By default this is related to
402
+ the long-running Spring server process. By default, this is related to
403
403
the socket path; if the socket path is ` /foo/bar/spring.sock ` the
404
404
pidfile will be ` /foo/bar/spring.pid ` .
405
405
* ` SPRING_SERVER_COMMAND ` - The command to run to start up the Spring
0 commit comments