First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :development
Then you'll want to rebuild your Docker container to install the gems
First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :development
Then you'll want to rebuild your Docker container to install the gems
See Amazon tutorial: Getting Started with Amazon EC2 Linux Instances
See Amazon tutorial: Installing a LAMP Web Server on Amazon Linux
# for redirecting hhtp traffic to https version of the site | |
server { | |
listen 80; | |
server_name example.com; | |
return 301 https://$server_name$request_uri; | |
} | |
# for redirecting to non-www version of the site | |
server { | |
listen 80; |
$ rails new my-i8n --webpack
Gemfile
gem 'i18n-js'
# Traversing arrays and objects in CoffeeScript | |
# The array and object we use for testing | |
arr = [1, 2, 3, 4, 5] | |
obj = {a: 1, b: 2, c: 3, d: 4, e: 5} | |
# 'in' has a different meaning in CoffeeScript than in JavaScript | |
# CS: element in array -> JS: array.indexOf(element) >= 0 | |
console.log '5 in arr: ' + (5 in arr) |
Check requirements at https://pgmodeler.io/installation.
You will need Qt 5.9.x installed, full XCode installed, and homebrew installation of postgres and openssl.
The example below is v10.5 of PG and v5.9.6 of Qt, modify accordingly. Also, replace {{USERNAME}}
with you Mac username.
The installation is the same as the instructions at the link above. There are a few path differences due to homebrew installation locations.
1) Create a linux user and set password | |
sudo adduser read_access | |
.. then enter your password for this user | |
2) Limit permission for the user (option) | |
.. normally, this user only has root permission on it's directory. (/home/read_access) | |
3) Set read-only role for this user to use Postgresql | |