first release grocy

remove standardnotes-web
This commit is contained in:
thomas 2022-02-23 00:07:32 +01:00
parent 297a9d686c
commit 30fc01c577
11 changed files with 24 additions and 98 deletions

View file

@ -1 +0,0 @@
/etc/default/standardnotes-web

View file

@ -1,8 +0,0 @@
Package: standardnotes-web
Version: %VERSION%
Section: base
Priority: optional
Architecture: all
Depends: nodejs
Maintainer: Thomas Legay <thomas@syngate.fr>
Description: standardnotes web

View file

@ -1,4 +0,0 @@
#!/bin/bash
id standardnotes-web &> /dev/null || useradd standardnotes-web -r -s /bin/false -md /usr/lib/standardnotes/web

View file

@ -1,25 +0,0 @@
RAILS_ENV=production
PORT=3004
WEB_CONCURRENCY=0
RAILS_LOG_TO_STDOUT=true
# Log Level options: "INFO" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL"
RAILS_LOG_LEVEL=INFO
RAILS_SERVE_STATIC_FILES=true
SECRET_KEY_BASE=test
APP_HOST=https://notes.lgy.fr
EXTENSIONS_MANAGER_LOCATION=extensions/extensions-manager/dist/index.html
SF_DEFAULT_SERVER=https://api.notes.lgy.fr
# Development options
DEV_DEFAULT_SYNC_SERVER=https://api.notes.lgy.fr
DEV_EXTENSIONS_MANAGER_LOCATION=public/extensions/extensions-manager/dist/index.html
ENABLE_UNFINISHED_FEATURES=false
DEV_WEBSOCKET_URL=https://notes.lgy.fr/ws
# NewRelic (Optional)
NEW_RELIC_ENABLED=false
NEW_RELIC_THREAD_PROFILER_ENABLED=false
NEW_RELIC_LICENSE_KEY=
NEW_RELIC_APP_NAME=Web
NEW_RELIC_BROWSER_MONITORING_AUTO_INSTRUMENT=false

View file

@ -1,16 +0,0 @@
[Unit]
Description=standardnote web
Documentation=https://github.com/standardnotes/web
After=network.target
[Service]
User=standardnotes
Group=standardnotes
EnvironmentFile=/etc/default/standardnotes-web
WorkingDirectory=/usr/lib/standardnotes/web
ExecStart=/usr/bin/npm run start
Restart=on-failure
RestartSec=60
[Install]
WantedBy=multi-user.target

View file

@ -1,32 +0,0 @@
#!/bin/bash
STEP="envinit prebuild build makedeb"
envinit() {
apt install -y --no-install-recommends git build-essential python2 wget ruby-dev libxml2 libz-dev
wget -qO - https://deb.nodesource.com/setup_16.x | bash
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
apt-get update
apt-get install -y yarn nodejs
}
prebuild(){
GIT_VERSION=$1
git clone --depth 1 -b ${GIT_VERSION} https://github.com/standardnotes/web.git /tmp/web
}
build() {
cd /tmp/web
PATH=$PATH:/tmp/web/bin
npm install
npm run build
}
makedeb(){
GIT_VERSION=$1
DEB_VERSION=$2
PATH_DEB=/tmp/dist/rootfs
cp -fr /tmp/web/* ${PATH_DEB}/usr/lib/standardnotes/web/
}