Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lorenzosinisi/shutup
Kill the Rails process running in the current folder. Solves 'A server is already running' problem.
https://github.com/lorenzosinisi/shutup
Last synced: 3 days ago
JSON representation
Kill the Rails process running in the current folder. Solves 'A server is already running' problem.
- Host: GitHub
- URL: https://github.com/lorenzosinisi/shutup
- Owner: lorenzosinisi
- License: mit
- Created: 2016-11-17T08:44:20.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-19T21:32:15.000Z (about 8 years ago)
- Last Synced: 2024-08-08T19:16:46.156Z (5 months ago)
- Language: Ruby
- Size: 14.6 KB
- Stars: 26
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Shutup
If you find yourself in this situation (A server is already running) often:
```
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
A server is already running. Check /tmp/pids/server.pid.
Exiting
```What you do includes, for instance, killing the process by its process id:
```
cat /tmp/pids/server.pid
kill -9 PID
```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.
## Installation
$ cd PROJECT_ROOT_FOLDER
$ gem install shutup## Installation (if using rvm)
$ cd PROJECT_ROOT_FOLDER
$ rvm @global do gem install shutup## Usage
After installing the gem run:
$ cd PROJECT_ROOT_FOLDER
$ shutupTEST IT: try to start the Rails app, open a new terminal window and then type:
$ shutup
To see how this gem kills the current process.
## Development
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).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/lorenzosinisi/shutup.
## Todo
1. Write tests
2. Kill other type of apps (Node, PHP, Scala)
3. Improve the error messages and error handling## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
[![Gem Version](https://badge.fury.io/rb/shutup.svg)](https://badge.fury.io/rb/shutup)