https://github.com/krisleech/rails-stack
Rails stack for solo server using Sprinkle
https://github.com/krisleech/rails-stack
Last synced: about 1 year ago
JSON representation
Rails stack for solo server using Sprinkle
- Host: GitHub
- URL: https://github.com/krisleech/rails-stack
- Owner: krisleech
- Created: 2012-03-11T21:04:08.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2013-07-25T15:52:27.000Z (almost 13 years ago)
- Last Synced: 2025-03-17T04:44:46.779Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 133 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Assuming you have a secured server you can provision your server with an entire
Rails stack in just a few commands using this recipie for Sprinkle.
This stack includes Zsh, MySQL, Apache/Passenger, Git and Ruby 1.9.2
Note: You should secure your server *before* provisioning it.
AUTOMATIC INSTALL OF RAILS STACK
================================
On your development machine:
```shell
git clone git://github.com/krisleech/rails-stack.git
cd rails-stack
bundle install
cp config/deploy.example.rb config/deploy.rb
vim deploy.rb
sprinkle -c -s config/install.rb
```
MANUALLY SECURE SERVER
======================
```shell
ssh root@example.com
# change your root pasword
passwd
# add a new user and allow them to sudo
sudo adduser deploy
sudo usermod -a -G sudo deploy
exit
```
```shell
# upload your ssh key for passwordless login
scp ~/.ssh/identity.pub deploy@example.com:.
ssh deploy@example.com
mkdir ~/.ssh
mv identity.pub ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
exit
```
```shell
# disable root and password login
ssh deploy@example.com
sudo vim /etc/ssh/sshd_config
PermitRootLogin no
PasswordAuthentication no
sudo service ssh restart
# Install denyhosts
sudo apt-get update
sudo apt-get install denyhosts
```