Skip to content

Instantly share code, notes, and snippets.

@crossaidi
Last active December 29, 2015 06:39
Show Gist options
  • Save crossaidi/7630515 to your computer and use it in GitHub Desktop.
Save crossaidi/7630515 to your computer and use it in GitHub Desktop.
vds_init
1.apt-get update / apt-get upgrade
2.dpkg-reconfigure tzdata
3.adduser admin
4.ssh-keygen
copy rsa key from local machine to authorized_keys
nano /etc/ssh/sshd_config:
Port 2772
PermitRootLogin no
5.nginx
6.db (app user needs to be equal to the db user)
pg: create role myapp with login password 'password1'
postgresql-server-dev-x.y - need to install
7.apt-get install curl
8.rvm/ruby / gpasswd -a admin rvm
9.git
10.nano ~/.bashrc:
export RAILS_ENV=production
=other envs=
11.nano ~/.gemrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment