Created
November 25, 2014 06:29
-
-
Save fahadgudu/87e768491c7a8edd2bf3 to your computer and use it in GitHub Desktop.
Rails server deployment issues
This file contains hidden or 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
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