Skip to content

Instantly share code, notes, and snippets.

@fahadgudu
Created November 25, 2014 06:29
Show Gist options
  • Save fahadgudu/87e768491c7a8edd2bf3 to your computer and use it in GitHub Desktop.
Save fahadgudu/87e768491c7a8edd2bf3 to your computer and use it in GitHub Desktop.
Rails server deployment issues
Postgresql: password authentication failed for user “postgres”
$ sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
Done! You saved User = postgres and password = postgres.
If you do not have a password for the User postgres ubuntu do:
$ sudo passwd postgres
Memory issues ans swap areas
sudo dd if=/dev/zero of=/swap bs=1M count=1024
sudo mkswap /swap
sudo swapon /swap
Bind etc to services in ubuntu
wget -O init-deb.sh http://library.linode.com/assets/660-init-deb.sh
sudo mv init-deb.sh /etc/init.d/nginx
sudo chmod +x /etc/init.d/nginx
sudo /usr/sbin/update-rc.d -f nginx defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment