Skip to content

Commit

Permalink
Hotfix: Grist (community-scripts#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelroegl-brunner authored Dec 29, 2024
1 parent aa7e8e0 commit 415f99e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ct/grist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m
APP="Grist"
var_tags="database;spreadsheet"
var_cpu="1"
var_ram="1024"
var_ram="2048"
var_disk="4"
var_os="debian"
var_version="12"
Expand Down
10 changes: 6 additions & 4 deletions install/grist-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ $STD apt-get install -y \
gnupg \
ca-certificates \
mc \
unzip \
python3.11-venv
msg_ok "Installed Dependencies"

Expand All @@ -43,9 +44,9 @@ wget -q https://github.com/gristlabs/grist-core/archive/refs/tags/v${RELEASE}.zi
unzip -q v$RELEASE.zip
mv grist-core-${RELEASE} grist
cd grist
yarn install
yarn run build:prod
yarn run install:python
$STD yarn install
$STD yarn run build:prod
$STD yarn run install:python
cat <<EOF >/opt/grist/.env
NODE_ENV=production
GRIST_HOST=0.0.0.0
Expand All @@ -68,6 +69,7 @@ EnvironmentFile=-/opt/grist/.env
[Install]
WantedBy=multi-user.target
EOF

systemctl enable -q --now grist.service
msg_ok "Created Service"

Expand All @@ -78,4 +80,4 @@ msg_info "Cleaning up"
rm -rf /opt/v${RELEASE}.zip
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"
msg_ok "Cleaned"

0 comments on commit 415f99e

Please sign in to comment.