mirror of
https://github.com/YunoHost-Apps/nocodb_ynh.git
synced 2024-09-03 19:56:01 +02:00
commit
b1d6a5f45a
12 changed files with 32 additions and 25 deletions
2
.github/workflows/updater.sh
vendored
2
.github/workflows/updater.sh
vendored
|
@ -17,7 +17,7 @@
|
|||
current_version=$(cat manifest.json | jq -j '.version|split("~")[0]')
|
||||
repo=$(cat manifest.json | jq -j '.upstream.code|split("https://github.com/")[1]')
|
||||
# Some jq magic is needed, because the latest upstream release is not always the latest version (e.g. security patches for older versions)
|
||||
version=$(curl --silent "https://api.github.com/repos/$repo/releases" | jq -r '.[] | select( .prerelease != true ) | .tag_name' | sort -V | tail -1)
|
||||
version=$(curl --silent "https://api.github.com/repos/$repo/releases" | jq -r '.[] | select( .prerelease != true ) | select( .name | contains("start") or contains("rc") or contains("beta") or contains("alpha") | not ) | .tag_name' | sort -V | tail -1)
|
||||
sha=$(curl --silent "https://api.github.com/repos/nocodb/nocodb-seed/commits/main" | jq -r '.sha')
|
||||
|
||||
# Later down the script, we assume the version has only digits and dots
|
||||
|
|
4
.github/workflows/updater.yml
vendored
4
.github/workflows/updater.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Fetch the source code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Run the updater script
|
||||
|
@ -33,7 +33,7 @@ jobs:
|
|||
- name: Create Pull Request
|
||||
id: cpr
|
||||
if: ${{ env.PROCEED == 'true' }}
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
commit-message: Update to version ${{ env.VERSION }}
|
||||
|
|
|
@ -6,6 +6,7 @@ It shall NOT be edited by hand.
|
|||
# NocoDB for YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/nocodb)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=nocodb)
|
||||
|
||||
*[Lire ce readme en français.](./README_fr.md)*
|
||||
|
@ -27,7 +28,7 @@ NocoDB is an open source NoCode platform that turns any database into a smart sp
|
|||
*(from NocoDB's website)*
|
||||
|
||||
|
||||
**Shipped version:** 0.100.1~ynh1
|
||||
**Shipped version:** 0.109.5~ynh1
|
||||
|
||||
**Demo:** https://www.nocodb.com/demos
|
||||
|
||||
|
|
21
README_fr.md
21
README_fr.md
|
@ -5,15 +5,16 @@ It shall NOT be edited by hand.
|
|||
|
||||
# NocoDB pour YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/nocodb)  
|
||||
[](https://dash.yunohost.org/appci/app/nocodb)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=nocodb)
|
||||
|
||||
*[Read this readme in english.](./README.md)*
|
||||
|
||||
> *Ce package vous permet d'installer NocoDB rapidement et simplement sur un serveur YunoHost.
|
||||
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
||||
> *Ce package vous permet d’installer NocoDB rapidement et simplement sur un serveur YunoHost.
|
||||
Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.*
|
||||
|
||||
## Vue d'ensemble
|
||||
## Vue d’ensemble
|
||||
|
||||
NocoDB is an open source NoCode platform that turns any database into a smart spreadsheet, alternative to Airtable.
|
||||
|
||||
|
@ -27,13 +28,13 @@ NocoDB is an open source NoCode platform that turns any database into a smart sp
|
|||
*(from NocoDB's website)*
|
||||
|
||||
|
||||
**Version incluse :** 0.100.1~ynh1
|
||||
**Version incluse :** 0.109.5~ynh1
|
||||
|
||||
**Démo :** https://www.nocodb.com/demos
|
||||
|
||||
## Captures d'écran
|
||||
## Captures d’écran
|
||||
|
||||

|
||||

|
||||
|
||||
## Avertissements / informations importantes
|
||||
|
||||
|
@ -43,8 +44,8 @@ NocoDB has its own authentication system which does not rely on YunoHost's SSO o
|
|||
|
||||
## Documentations et ressources
|
||||
|
||||
* Site officiel de l'app : <https://www.nocodb.com>
|
||||
* Dépôt de code officiel de l'app : <https://github.com/nocodb/nocodb>
|
||||
* Site officiel de l’app : <https://www.nocodb.com>
|
||||
* Dépôt de code officiel de l’app : <https://github.com/nocodb/nocodb>
|
||||
* Documentation YunoHost pour cette app : <https://yunohost.org/app_nocodb>
|
||||
* Signaler un bug : <https://github.com/YunoHost-Apps/nocodb_ynh/issues>
|
||||
|
||||
|
@ -60,4 +61,4 @@ ou
|
|||
sudo yunohost app upgrade nocodb -u https://github.com/YunoHost-Apps/nocodb_ynh/tree/testing --debug
|
||||
```
|
||||
|
||||
**Plus d'infos sur le packaging d'applications :** <https://yunohost.org/packaging_apps>
|
||||
**Plus d’infos sur le packaging d’applications :** <https://yunohost.org/packaging_apps>
|
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://github.com/nocodb/nocodb-seed/archive/3cdeeb7d0d130850177b47c6215a84f6b4a34548.zip
|
||||
SOURCE_SUM=63f30dd9892e4558140c5a5ffc62ed7aa613aca05fddeb68c6ba153d5043c8cb
|
||||
SOURCE_URL=https://github.com/nocodb/nocodb-seed/archive/2b5afac041b038009d9f90fc73ed3f5c987f3a27.zip
|
||||
SOURCE_SUM=1861cb06ee6bf0e3aa1c219b4b3bc540db88375287ae1df9fffc2b5c07b1d953
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_EXTRACT=true
|
||||
|
|
4
conf/env
4
conf/env
|
@ -1,5 +1,7 @@
|
|||
NODE_ENV=dev
|
||||
NODE_ENV=production
|
||||
PORT=__PORT__
|
||||
NC_DB=mysql2://localhost:3306?u=__DB_USER__&p=__DB_PWD__&d=__DB_NAME__
|
||||
NC_AUTH_JWT_SECRET=__JWT_SECRET__
|
||||
NC_DISABLE_TELE=1
|
||||
NC_PUBLIC_URL=https://__DOMAIN__
|
||||
NC_REQUEST_BODY_SIZE=104857600
|
||||
|
|
|
@ -10,6 +10,8 @@ location __PATH__/ {
|
|||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $http_connection;
|
||||
|
||||
client_max_body_size 100M;
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "No-code platform that turns any database into a smart spreadsheet",
|
||||
"fr": "Plateform sans code qui transforme toute base de données en un tableur intelligent."
|
||||
},
|
||||
"version": "0.100.1~ynh1",
|
||||
"version": "0.109.5~ynh1",
|
||||
"url": "https://www.nocodb.com",
|
||||
"upstream": {
|
||||
"license": "AGPL-3.0-only",
|
||||
|
|
|
@ -115,7 +115,7 @@ fi
|
|||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||
|
||||
# Start a systemd service
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Visit : localhost:"
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="application successfully started"
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
|
|
|
@ -130,7 +130,7 @@ pushd $final_path
|
|||
ynh_print_info --message="...Done! Installing NocoDB now..."
|
||||
fi
|
||||
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV="production" $ynh_npm install --force
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV="production" $ynh_npm install --save nocodb@$(ynh_app_upstream_version)
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
@ -174,7 +174,7 @@ yunohost service add $app --description="$app daemon, turns any database into a
|
|||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||
|
||||
# Start a systemd service
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Visit : localhost:"
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="application successfully started"
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
|
|
|
@ -125,7 +125,7 @@ yunohost service add $app --description="$app daemon, turns any database into a
|
|||
#=================================================
|
||||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Visit : localhost:"
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="application successfully started"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
|
@ -118,7 +118,8 @@ pushd $final_path
|
|||
ynh_print_info --message="...Done! Installing NocoDB now..."
|
||||
fi
|
||||
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV="production" $ynh_npm install --force
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV="production" $ynh_npm uninstall nocodb
|
||||
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV="production" $ynh_npm install --save nocodb@$(ynh_app_upstream_version)
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
@ -151,7 +152,7 @@ yunohost service add $app --description="$app daemon, turns any database into a
|
|||
#=================================================
|
||||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Visit : localhost:"
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="application successfully started"
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
|
|
Loading…
Add table
Reference in a new issue