Files
mapknitter/install_cloud.sh
Jeffrey Warren 468cd690ea Update install_cloud.sh (#420)
* Update install.sh

* Create cloudnine_install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update cloudnine_install.sh

* Delete install.sh

* cp config/config.yml.example config/config.yml

* Update cloudnine_install.sh

* Rename cloudnine_install.sh to install_cloudnine.sh

* Create database.yml.cloud9.example

* Update install_cloudnine.sh

* Update README.md

* Update README.md

Co-Authored-By: jywarren <jeff@unterbahn.com>

* Update README.md

* Change permissions

* Add nodejs-legacy package

* Add commands for install mysql and rvm

* Use ruby 2.4.6 and remove unecessary lines to create db

* Update Readme

* Install mysql with blank password

* Update and rename install_cloudnine.sh to install_cloud.sh

* Update README.md
2019-04-14 11:49:35 -05:00

25 lines
1.0 KiB
Bash
Executable File

git checkout -b main
git pull -f origin main
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash
source ~/.rvm/scripts/rvm
rvm install ruby-2.4.6
source $(rvm 2.4.6 do rvm env --path)
rvm use ruby-2.4.6
gem install rails -v 3.2.0
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server
sudo apt-get -y install bundler libmysqlclient-dev imagemagick ruby-rmagick libfreeimage3 libfreeimage-dev ruby-dev libmagickcore-dev libmagickwand-dev npm nodejs-legacy
# exporter-only:
#sudo apt-get install gdal-bin python-gdal curl libcurl4-openssl-dev libssl-dev zip
gem install bundler
bundle install
cp db/schema.rb.example db/schema.rb
cp config/database.yml.cloud9.example config/database.yml
cp config/config.yml.example config/config.yml
sudo service mysql start
rake db:setup
sudo npm install -g bower
bower install
echo "Done! Run the application with 'rails s -b \$IP -p \$PORT'"