Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adamluzsi/rails-defaults
Ruby modul for Rails to Patch default used server / port , etc
https://github.com/adamluzsi/rails-defaults
Last synced: 13 days ago
JSON representation
Ruby modul for Rails to Patch default used server / port , etc
- Host: GitHub
- URL: https://github.com/adamluzsi/rails-defaults
- Owner: adamluzsi
- License: mit
- Created: 2014-04-15T10:44:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-21T15:03:01.000Z (over 10 years ago)
- Last Synced: 2024-10-18T05:46:49.035Z (26 days ago)
- Language: Ruby
- Size: 160 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
rails-defaults
==============Ruby modul for Rails to Patch default used server / port , etc
### Examples for use
```ruby
require 'rails-defaults'
RailsDefaults.port 3003
RailsDefaults.server :puma
RailsDefaults.environment :development```
or you can use the hash input way with the options/opts call
```ruby
require 'rails-defaults'
RailsDefaults.opts port: 3210,
server: :puma,
env: :development```
now you can use simple rails start up like 'rails s' || 'rails server'