shutup 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +31 -14
- data/lib/shutup.rb +0 -2
- data/lib/shutup/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df2dd56ae607b54b47645b956b6d771a547fdc4d
|
4
|
+
data.tar.gz: 297aa20c76d4ff904062ffda8111bee4a62d1f6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a7f2ef81d50cc93a91403c8b7cfd59161e39eb1db3190c1e17fc198635f41f74df2fe6e190cdef1121b4657d8f3661a06f81459061350915c5c0dde75d0339b
|
7
|
+
data.tar.gz: f629ddf11a6d5f4545c36c6b5112ecdeac07015ffc4c9e0549da1ed0d287b6da347399dd202bbfe094d6db4c257c355808bc9aa735639aca8a574ad33cb4a3b0
|
data/README.md
CHANGED
@@ -1,38 +1,55 @@
|
|
1
1
|
# Shutup
|
2
2
|
|
3
|
-
|
3
|
+
If you find yourself in this situation (A server is already running) often:
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
```
|
6
|
+
=> Run `rails server -h` for more startup options
|
7
|
+
=> Ctrl-C to shutdown server
|
8
|
+
A server is already running. Check /tmp/pids/server.pid.
|
9
|
+
Exiting
|
10
|
+
```
|
8
11
|
|
9
|
-
|
12
|
+
What you do includes, for instance, killing the process by its process id:
|
10
13
|
|
11
|
-
```
|
12
|
-
|
14
|
+
```
|
15
|
+
cat /tmp/pids/server.pid
|
16
|
+
kill -9 PID
|
13
17
|
```
|
14
18
|
|
15
|
-
And
|
19
|
+
But this is boring. And you have to do it all the times. This gems creates a shortcut to fix the 'A server is already running' problem when dealing with Rails.
|
16
20
|
|
17
|
-
|
21
|
+
## Installation
|
18
22
|
|
19
|
-
|
23
|
+
Go in the root folder of your Rails project:
|
20
24
|
|
21
25
|
$ gem install shutup
|
22
26
|
|
27
|
+
|
23
28
|
## Usage
|
24
29
|
|
25
|
-
|
30
|
+
After installing the gem run:
|
26
31
|
|
27
|
-
|
32
|
+
$ shutup
|
33
|
+
|
34
|
+
NOTE: try to start the Rails app, open a new terminal window and then type:
|
28
35
|
|
29
|
-
|
36
|
+
$ shutup
|
37
|
+
|
38
|
+
To see how this gem kills the current process.
|
39
|
+
|
40
|
+
## Development
|
30
41
|
|
31
42
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
43
|
|
33
44
|
## Contributing
|
34
45
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
46
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/lorenzosinisi/shutup.
|
47
|
+
|
48
|
+
## Todo
|
49
|
+
|
50
|
+
1. Write tests
|
51
|
+
2. Kill other type of apps (Node, PHP, Scala)
|
52
|
+
3. Improve the error messages and error handling
|
36
53
|
|
37
54
|
|
38
55
|
## License
|
data/lib/shutup.rb
CHANGED
data/lib/shutup/version.rb
CHANGED