##Create a new user with super permission
su
sudo -u postgres psql
create user username with password 'password';
alter role username superuser createrole createdb replication;
create database projectname_production owner username;| ps aux | grep 'unicorn' | awk '{print $2}' | xargs sudo kill -9 |
##Create a new user with super permission
su
sudo -u postgres psql
create user username with password 'password';
alter role username superuser createrole createdb replication;
create database projectname_production owner username;