- Local Development Virtual Machine with similar or identical configuration to remote servers
- Remote Servers
- Production load balancer (Apache or Nginx)
- Cluster for production
- Staging load balancer (Apache or Nginx)
- Cluster for staging
- Database Server. Possibly load balancer
- Production load balancer (Apache or Nginx)
- LAMP
- RVM instructions
- With Rails
gem install rails --no-doc --no-ri - With Rails 3
gem install rails --version 3.2.13 --no-doc -no-ri - OpenSSH Public Key Setup
- Git
sudo apt-get -y install git - htop
sudo apt-get -y install htop
- Host Name:
sudo vim /etc/hostname(then change the hostname)sudo vim /etc/hosts(Change hostname here too)- eth1:
sudo vim /etc/network/interfaces(Change IP on eth1) - eth0:
sudo rm /etc/udev/rule.d/70-persistent-net.rules && sudo shutdown -r now
Add the following line to your sudoers file username ALL=(ALL) NOPASSWD: ALL where username is the username in question.
You can add this line to the bottom of the normal sudoers file with the command sudo visudo or to a separate file located in /etc/sudoers.d/ with the command sudo visudo -f /etc/sudoers.d/<my file name>
sshfs for text editing: sshfs -oworkaround=rename -o transform_symlinks -o follow_symlinks [your-remote-machine]: ~/[local-mount-point]
This will be used for deploying to multiple locations.
gem install capistrano --no-doc --no-ri
gem install capistrano-ext --no-doc --no-ri
cap invoke COMMAND="gem install bundler --no-doc --no-ri"
http://guides.beanstalkapp.com/deployments/deploy-with-capistrano.html
Put set :default_shell, '/bin/bash -l' in your capfile