Add contents to README.md and setup.sh
This commit is contained in:
parent
e617fec1ee
commit
13a67e201d
45
README.md
45
README.md
@ -1,43 +1,36 @@
|
||||
**Gentelella On Rails**
|
||||
**Gluster Web Interface**
|
||||
---------------------------
|
||||
Rails 4 implementation of the awesome [Gentelella](https://github.com/puikinsh/gentelella) Bootstrap admin template.
|
||||
[Gluster](https://gluster.org) client web interface for managing and using glusterfs more efficiently.
|
||||
|
||||
Requirement:
|
||||
1. ruby(2.2.3)
|
||||
2. rails
|
||||
3. sshpass
|
||||
|
||||
Setup:
|
||||
*Requirement:*
|
||||
1. glusterfs server and client(to be installed)
|
||||
|
||||
2. ruby (2.2.3 or more)
|
||||
|
||||
3. rails
|
||||
|
||||
4. sshpass
|
||||
|
||||
|
||||
*Setup:*
|
||||
1. Clone this repo : git clone
|
||||
https://github.com/iogbole/gentelella_on_rails.git
|
||||
https://github.com/oss2016summer/gluster-web-interface.git
|
||||
|
||||
2. cd gentelella_on_rails
|
||||
2. cd gluster-web-interface
|
||||
|
||||
3. npm install -g bower
|
||||
3. script/setup.sh
|
||||
|
||||
4. bower install
|
||||
4. fix configure.conf
|
||||
|
||||
5. bundle install
|
||||
|
||||
6. bin/rake db:migrate
|
||||
|
||||
7. rails s
|
||||
5. rails s
|
||||
|
||||
That's it!
|
||||
|
||||
Navigate to http://localhost:3000
|
||||
|
||||

|
||||
If you want access via public network, use additional module like [localtunnel](https://github.com/localtunnel/localtunnel)
|
||||
|
||||
------------------------------------------------------------------------
|
||||
If you're using devise, you'd need to create another layout to handle authentication and sign_ups as discussed in [issue #2](https://github.com/iogbole/gentelella_on_rails/issues/2).
|
||||
|
||||
This is the [login template](https://gist.github.com/iogbole/a2f1ddf330cb5194967a1996369619e8). And this is what it looks like:
|
||||
|
||||

|
||||
|
||||
----------
|
||||
*I committed the vendor files to this repo so you may skip step 3 and 4*
|
||||
|
||||
**Contributing**
|
||||
|
||||
|
@ -2,7 +2,7 @@ class VolumeController < ApplicationController
|
||||
helper_method :file_directory
|
||||
|
||||
def info
|
||||
file_directory('/home/ubuntu')
|
||||
file_directory('/opt/gluster-web-interface')
|
||||
@volumes = Array.new
|
||||
volume = Hash.new
|
||||
i = 0
|
||||
|
16
script/setup.sh
Executable file
16
script/setup.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#! /bin/sh
|
||||
|
||||
# setup
|
||||
npm install -g bower
|
||||
bower install
|
||||
bundle install
|
||||
bin/rake db:migrate
|
||||
|
||||
# make configuration file
|
||||
CONF_PATH=`pwd`/configure.conf
|
||||
touch $CONF_PATH
|
||||
echo "project_path=`pwd`" >> $CONF_PATH
|
||||
echo "server_name=gluster" >> $CONF_PATH
|
||||
echo "host_ip=127.0.0.1" >> $CONF_PATH
|
||||
echo "host_user=root" >> $CONF_PATH
|
||||
echo "host_password=secret" >> $CONF_PATH
|
@ -1,8 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
PORT=3000
|
||||
SUBDOMAIN=gluster
|
||||
PROJ_PATH=
|
||||
|
||||
$PROJ_PATH/rails s &
|
||||
lt -p $PORT -s $SUBDOMAIN
|
@ -1,3 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
pkill ruby
|
Loading…
Reference in New Issue
Block a user