Setting up MacOS Sierra for Rails DevelopmentDecember 15, 2016 |
One of the only differences I've noticed is installing mysql is slightly different.
Install xcode.
xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew update
brew install rbenv ruby-build openssl
Lets Encrypt Setup and Auto Renew (NGINX)July 20, 2016 |
sudo su - root # NOTE: This has to be run as root. Be very careful!
cd /usr/sbin
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto
Add the following to your nginx server configuration block vim sites-enabled/yourdomain.com
location ^~ /.well-known/ {
root /usr/share/nginx/html;
}
Ubuntu 16.04 Rails/Nginx/Passenger/MariaDB ServerOctober 25, 2016 |
Assuming you're logged in as root add these users and login as "not root."
adduser deploy
adduser [yourname] #optionally
vim /etc/group
# add your users to the sudo group like so:
sudo:x:27:isaac,deploy
vim /etc/ssh/sshd_config
# add to file or if they exist set the flags to no.
Setting up Rails, Passenger, Nginx, Mysql and xdelta3 on RED HAT ENTERPRISE LINUXOctober 29, 2014 |
adduser deploy
Make sure that each line completes before running the next. Don't just copy the lines in all at once or it will use the beginning letters of one line as an answer to questions the first may ask.
sudo su - root
yum groupinstall "Development Tools" "Development Libraries"