Skip to content

Instantly share code, notes, and snippets.

@kaosf
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save kaosf/95ca225c0e82883cae5b to your computer and use it in GitHub Desktop.

Select an option

Save kaosf/95ca225c0e82883cae5b to your computer and use it in GitHub Desktop.
Shirasagi https://github.com/shirasagi/shirasagi installation commands for Ubuntu 14.04
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get -y update
sudo apt-get -y install git curl build-essential \
zlib1g-dev libssl-dev libreadline6-dev libffi-dev \
libxslt1-dev libxml2-dev \
libldap2-dev libsasl2-dev \
imagemagick libmagickwand-dev \
mongodb-org
git clone https://github.com/sstephenson/rbenv.git $HOME/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> $HOME/.profile
echo 'eval "$(rbenv init -)"' >> $HOME/.profile
exec $SHELL -l
mkdir -p $HOME/.rbenv/plugins
git clone https://github.com/sstephenson/ruby-build.git $HOME/.rbenv/plugins/ruby-build
rbenv install 2.2.2
rbenv global 2.2.2
rbenv rehash
gem install bundler --no-ri --no-rdoc
rbenv rehash
git clone https://github.com/shirasagi/shirasagi $HOME/shirasagi
cd $HOME/shirasagi
cp config/samples/* config/
sed 's/production/development/' -i config/environment.yml
bundle install
rake db:create_indexes
rake ss:create_user data='{ name: "システム管理者", email: "sys@example.jp", password: "pass" }'
rake ss:create_site data='{ name: "サイト名", host: "www", domains: "localhost:3000" }'
rake db:seed name=users site=www
rake db:seed name=demo site=www
bin/rails s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment