Last active
December 29, 2015 06:39
-
-
Save crossaidi/7630515 to your computer and use it in GitHub Desktop.
vds_init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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