We can replicate everything from the Quickbooks project's web and database server and modify it as per our requirements. We have also extensively used templates.
Create a separate project in cloud.
Start the cluster
# this user has access to sockets in /var/run/postgresql
sudo su - postgres
# include path to postgres binaries
export PATH=$PATH:/usr/lib/postgresql/15/bin
Modify my PATH so that the changes are available in every Terminal session!!!
So, you could add in in your profile. ( postgres user )
ls
15 citus citus_logfile
pg_ctl -D citus -o "-p 9700" -l citus_logfile start
psql -p 9700
postgres=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | ICU Locale | Locale Provider | Access privileges
-----------+-----------+----------+-------------+-------------+------------+-----------------+-----------------------
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | | libc |
quickbook | quickbook | UTF8 | en_US.UTF-8 | en_US.UTF-8 | | libc |
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | | libc | =c/postgres +
| | | | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | | libc | =c/postgres +
| | | | | | | postgres=CTc/postgres
DROP DATABASE quickbook;
- python manage.py migrate
Comments
Post a Comment