From 01e2df75d78f53437d32899b33e5ac3134003b84 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Wed, 23 May 2018 01:54:07 +0300 Subject: [PATCH 1/3] old configs removed --- .node-version | 1 - deploy.sh | 36 ------------------------------------ 2 files changed, 37 deletions(-) delete mode 100644 .node-version delete mode 100755 deploy.sh diff --git a/.node-version b/.node-version deleted file mode 100644 index dc3829f5..00000000 --- a/.node-version +++ /dev/null @@ -1 +0,0 @@ -6.9.1 diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index 14d1e5cf..00000000 --- a/deploy.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh - -echo "Deploying art.shburg.org" - -server="art.shlisselburg.org" -tarfile="build.tar.gz" -tarpath=$TMPDIR${tarfile} -destpath="~/www/art.shburg.org" - -echo "Building..." -npm run out -NODE_ENV=production npm run gulp deploy - -echo "Packing $tarpath" -env GZIP=-9 tar -czf ${tarpath} \ - --disable-copyfile \ - --exclude=node_modules \ - --exclude=.git \ - --exclude=.idea \ - --exclude=.DS_Store \ - --exclude=src \ - --exclude=deploy.sh \ - --exclude=install.sh \ - . - -echo "Uploading..." -ssh hoster@${server} "rm -rf $destpath/public/*" -scp ${tarpath} hoster@${server}:${destpath} - -echo "Installing..." -ssh hoster@${server} "bash -s" -- < ./install.sh ${destpath} ${tarfile} - -echo "Clear..." -rm ${tarpath} - -echo "Done" -- 2.54.0 From 0d79157a560d88a0cd14d9f5280340e80ebb644d Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Wed, 23 May 2018 01:54:24 +0300 Subject: [PATCH 2/3] readme updated --- README.md | 53 +++++++++++++++++++---------------------------------- 1 file changed, 19 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 18c6fd66..1a11f41e 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,27 @@ # [ART.SHLISSELBURG.ORG](https://art.shlisselburg.org) -Art school of **Shlisselburg** + +Site of Art school of Shlisselburg ## Usage +### Build + +```bash +$ docker build -t tmshv/hudozka . +``` + ### How to run -```bash -$ npm start +#### Add .env file + +``` +MONGO_HUDOZKA_PASSWORD= +HUDOZKA_DB_URI=mongodb://hudozka:strong_password@mongo:27017/hudozka?authSource=admin ``` -### Environments variables - -#### PORT - -TCP Port for app - +#### Run ```bash -PORT=8080 npm start -``` - -#### PRIVATE - -Path to JSON file with secret keys - -```bash -PRIVATE=private.json npm start +$ docker-compose up -d ``` ### How to sync data base @@ -39,23 +36,11 @@ PWD= mongodump -d ${DB} --gzip --archive | mongorestore -h ${HOST} -u ${USER} -p ${PWD} -d ${DB} --gzip --archive ``` -## Build client - -```bash -$ NODE_ENV=production gulp deploy -``` - -For developer purposes: - -```bash -$ gulp deploy -``` - -### Based on: -- [NodeJS](http://nodejs.org) 6.0 +## Based on: +- [NodeJS](http://nodejs.org) 10.0 - [koa.js](http://koajs.com) 2.0 -- [angular.js](https://angularjs.org) 1.5 -- [MongoDB](http://mongodb.org) 3.2 +- [React](https://react.org) 16.3 +- [MongoDB](http://mongodb.org) 3.6 ## Contributors - Roman Timashev ([roman@tmshv.ru](mailto:roman@tmshv.ru)) -- 2.54.0 From 45993254bbdf60eacf80f862e99769b96d2edb96 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Wed, 23 May 2018 01:55:30 +0300 Subject: [PATCH 3/3] letsencrypt config removed --- letsencrypt.ini | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 letsencrypt.ini diff --git a/letsencrypt.ini b/letsencrypt.ini deleted file mode 100644 index f7ea8a7d..00000000 --- a/letsencrypt.ini +++ /dev/null @@ -1,4 +0,0 @@ -rsa-key-size = 4096 -email = roman@tmshv.ru -domains = art.shlisselburg.org -webroot-path = /home/hoster/www/art.shburg.org/public \ No newline at end of file -- 2.54.0