https://github.com/ates/netspire-admin-ar
https://github.com/ates/netspire-admin-ar
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ates/netspire-admin-ar
- Owner: ates
- Created: 2011-12-13T08:01:47.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-12-28T14:50:09.000Z (over 14 years ago)
- Last Synced: 2025-01-15T13:10:34.276Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 243 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Web administration interface for Netspire
=========================================
Required software
-----------------
* Ruby 1.9 or higher
* Rubygems
* Rails 3.1.3
Running
-------
* cd netspire-admin
* copy config/database.yml.sample to config/database.yml
$ cp config/database.yml.sample config/database.yml
$ ls -l config/database.yml
-rw-r--r-- 1 user group 276 Dec 9 13:13 config/database.yml
* Install required gems
$ bundle install
* Bootstrap database
$ bundle exec rake db:setup
* Run application in development mode
$ bundle exec rails server
Rake tasks
----------
* To see all available tasks
$ bundle exec rake -T netspire
rake netspire:admins:create # Create new Admin account (options: LOGIN=login, PASSWORD=password, DOMAIN=name).
rake netspire:domains:create # Create new domain (options: NAME=name, TITLE=title).
* Create new domain
$ bundle exec rake netspire:domains:create NAME=myisp TITLE=MyISP
* Create new admin account with all permissions and assinged to specific domain
$ bundle exec rake netspire:admins:create LOGIN=admin PASSWORD=secret DOMAIN=myisp
Authentication token is uxsrYB4bSBgDeZ65jmaq
Deploying
---------
* Before deploying in production need to precompile CSS and JS files:
$ bundle exec rake assets:precompile
* Configure front-end HTTP server to serve static files from /public/assest