Install Ruby Version Manager https://github.com/rbenv/rbenv
Following this guide to setup development environment Ruby on Rails https://gorails.com/setup/osx/10.11-el-capitan
Show all versions of Ruby
rbenv versions
https://developer.ibm.com/recipes/tutorials/use-pkgcloud-to-access-ibm-object-storage-for-bluemix-with-node-js/ | |
var pkgcloud = require('pkgcloud'); | |
var config = { | |
provider: 'openstack', | |
useServiceCatalog: true, | |
useInternal: false, | |
keystoneAuthVersion: 'v3', | |
authUrl: 'https://identity.open.softlayer.com', |
Install Ruby Version Manager https://github.com/rbenv/rbenv
Following this guide to setup development environment Ruby on Rails https://gorails.com/setup/osx/10.11-el-capitan
Show all versions of Ruby
rbenv versions
This is the guide
brew install gdal
After installing the tool, convert the SHP file to geojson first by this command
Rails.application.routes.draw do | |
get '/(:locale)/products/(:category)/(page/:page).:extension', | |
:to => 'products#index', | |
:as => :products, | |
:constraints => { | |
:locale => /[a-z]{2}/, | |
:category => /.+?/, | |
:page => /\d+/ | |
}, |
Login as root account and create new deploy user
sudo adduser deploy
Enter password and other information.
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04
##################################### | |
# 0. SET UP AWS (ASSUMING YOU HAVE ALREADY SET UP AN ACCOUNT) | |
# CREATE SECURITY GROUP | |
• In the EC2 Dashboard, click Security Groups, then Create Security Group. | |
• Enter Name | |
• Enter Description | |
• Rules to add: | |
- HTTP | |
- SSH |
# the instructions from here: https://stackoverflow.com/questions/3704919/installing-rmagick-on-ubuntu/31089915#31089915 | |
# worked, but only after I added in line 8 | |
sudo apt-get purge graphicsmagick graphicsmagick-dbg imagemagick-common imagemagick imagemagick-6.q16 libmagickcore-6-headers libmagickwand-dev graphicsmagick-libmagick-dev-compat | |
sudo apt-get autoremove | |
sudo apt-get install imagemagick libmagickwand-dev | |
sudo ln -s /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/Magick-config /usr/bin/Magick-config | |
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig | |
gem install rmagick |