Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save buckyroberts/b2be573741650542d523bb4e559270dc to your computer and use it in GitHub Desktop.
Save buckyroberts/b2be573741650542d523bb4e559270dc to your computer and use it in GitHub Desktop.
Validator Notes
before running sudo pip3 install -r requirements/production.txt
run this
sudo apt-get install libpq-dev -y
then run this -
sudo apt install postgresql postgresql-contrib -y
sudo -u postgres psql
CREATE DATABASE thenewboston;
CREATE USER deploy WITH PASSWORD ‘password1234’;
ALTER ROLE deploy SET client_encoding TO ‘utf8’;
ALTER ROLE deploy SET default_transaction_isolation TO ‘read committed’;
ALTER ROLE deploy SET timezone TO ‘UTC’;
GRANT ALL PRIVILEGES ON DATABASE thenewboston TO deploy;
\q
@Hacking-NASSA-with-HTML
Copy link

Hacking-NASSA-with-HTML commented Nov 21, 2020

Forgot the step about adding the CREATE ROLE deploy;

Can you specify where exactly this "CREATE ROLE deploy;" must be added? After what line? For example like this?

Validator Notes

before running sudo pip3 install -r requirements/production.txt

run this
sudo apt-get install libpq-dev -y

then run this -
sudo apt install postgresql postgresql-contrib -y
sudo -u postgres psql
CREATE DATABASE thenewboston;
CREATE USER deploy WITH PASSWORD ‘password1234’;
********************************************* CREATE ROLE deploy;*************************
ALTER ROLE deploy SET client_encoding TO ‘utf8’;
ALTER ROLE deploy SET default_transaction_isolation TO ‘read committed’;
ALTER ROLE deploy SET timezone TO ‘UTC’;
GRANT ALL PRIVILEGES ON DATABASE thenewboston TO deploy;
\q

"

@mrbusysky
Copy link

Also for those who run into issues setting utc

ALTER ROLE deploy SET timezone = 'UTC';

@RDM3DC
Copy link

RDM3DC commented Dec 1, 2020

If I skipped one of the steps should I restart from the beginning and if so how far back do I go? Should I terminate the instance? How many instances can I make and delete? If I can back up steps how do I do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment