Mongrel
| Język programowania | Ruby / C |
|---|---|
| Platforma sprzętowa | wieloplatformowy |
| System operacyjny | wieloplatformowy |
| Rodzaj | serwer HTTP/1.1 |
| Licencja | Ruby (licencja), GPL2 |
| Strona internetowa | |
Mongrel – mały i szybki serwer HTTP/1.1 dla Ruby i JRuby[1], którego można używać m.in. do obsługi aplikacji napisanych we frameworku Ruby on Rails[2].
Instalacja
Instalacja wygląda następująco (wymagane są RubyGems oraz Ruby w wersji >= 1.8.4):
~$ gem install mongrel
Po zainstalowaniu, aby uruchomić serwer wystarczy przejść do katalogu aplikacji i wydać polecenie:
~$ mongrel_rails start
Domyślnie serwer uruchomi aplikację w trybie development, na porcie 3000.
Podstawowe polecenia
Uruchomienie serwera
~$ mongrel_rails start
Polecenie to posiada następujące parametry:
- -d - aplikacja będzie działała w tle,
- -p - jako argument wpisujemy numer portu, z którego nasza aplikacja będzie korzystać
- -e - jako argument podajemy nazwę środowiska (production -dla gotowej aplikacji, development -w czasie gdy ją tworzymy)
Zatrzymywanie serwera
~$ mongrel_rails stop
Restart serwera
~$ mongrel_rails restart
Przypisy
- ↑ RubyForge: Mongrel: Project info. [dostęp 2010-11-16]. [zarchiwizowane z tego adresu (2011-07-09)]. (ang.).
- ↑ Mongrel README. (ang.).
Linki zewnętrzne
- Strona projektu Mongrel. (ang.).
- Licencja Ruby. (ang.).
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.