Add contents to README.md and setup.sh
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user