From 32f2127ecc5d4bc38e36ba0723ae196294e3e41b Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 26 Apr 2021 16:11:55 +0200 Subject: [PATCH] readme --- readme.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 readme.md diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..9aef9e6 --- /dev/null +++ b/readme.md @@ -0,0 +1,39 @@ +# Installing editoria on debian 10 for production + + +## postgres + +```sh +apt install postgresql postgresql-client +systemctl enable --now postgresql +su - porstgres +psql -c "ALTER USER postgres WITH password 'monsupermotdepasse'" +``` + +## xsweet + +### postgresql db +```sh +su - porstgres +createuser xsweet +psql -c "alter user xsweet with encrypted password 'SUPERMOTDEPASSE';" +createdb xsweetdb -O xsweet +# psql -c "grant all privileges on database xsweetdb to xsweet;" +``` + +### xsweet +```sh +docker pull cokoapps/xsweet:1.1.0 +docker run -d -t -i \ + -e PUBSWEET_SECRET=YOURSECRET + -e SERVER_PORT=9001 + -e SERVER_HOST=localhost + -e SERVER_PROTOCOL=http + -e POSTGRES_USER=xsweet + -e POSTGRES_PASSWORD=YOURPASSWORD + -e POSTGRES_HOST=localhost + -e POSTGRES_DB=xsweetdb + -e POSTGRES_PORT=5432 + -e NODE_ENV=production + cokoapps/xsweet +```