chore: fix server-install.sh and update .env for Grav 2.0 production deploy
- server-install.sh: use GitHub releases URL (avoids channel suffix hack) - GRAV_VERSION bumped to 2.0.0-rc.10 in .env.example - production-todo.md: mark Phase 2.1 env vars as done Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ WEBROOT=/home/example.com/public_html
|
|||||||
SITE_CONFIG_DIR=/home/example.com/site-config
|
SITE_CONFIG_DIR=/home/example.com/site-config
|
||||||
|
|
||||||
# Grav
|
# Grav
|
||||||
GRAV_VERSION=1.7.53
|
GRAV_VERSION=2.0.0-rc.10
|
||||||
|
|
||||||
# Repos
|
# Repos
|
||||||
USER_REPO=https://gitea.example.com/org/intotheeast-user.git
|
USER_REPO=https://gitea.example.com/org/intotheeast-user.git
|
||||||
|
|||||||
@@ -32,9 +32,8 @@ These are changes made in the local dev environment and committed before anythin
|
|||||||
|
|
||||||
### 2.1 Configure .env
|
### 2.1 Configure .env
|
||||||
|
|
||||||
- [ ] Set `GRAV_VERSION=2.0.0-rc.9` in `.env`
|
- [x] Set `GRAV_VERSION=2.0.0-rc.10` in `.env` (GitHub releases URL, no channel suffix needed)
|
||||||
- [ ] Set `GRAV_CHANNEL_SUFFIX=?testing` (makes the download URL resolve to the RC)
|
- [x] Set `REMOTE_HOST`, `REMOTE_USER`, `REMOTE_PORT`, `REMOTE_HOME` for the production server
|
||||||
- [ ] Set `REMOTE_HOST`, `REMOTE_USER`, `REMOTE_PORT`, `REMOTE_HOME` for the production server
|
|
||||||
- [ ] Set `USER_REPO` and `MAIN_REPO` (Gitea URLs)
|
- [ ] Set `USER_REPO` and `MAIN_REPO` (Gitea URLs)
|
||||||
- [ ] Set `GITEA_HOST`, `GITEA_USER`, `GITEA_TOKEN` for the install-time clone
|
- [ ] Set `GITEA_HOST`, `GITEA_USER`, `GITEA_TOKEN` for the install-time clone
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ chmod 600 ~/.netrc
|
|||||||
|
|
||||||
echo "==> Downloading Grav $GRAV_VERSION"
|
echo "==> Downloading Grav $GRAV_VERSION"
|
||||||
cd "$WEBROOT"
|
cd "$WEBROOT"
|
||||||
wget --no-verbose "https://getgrav.org/download/core/grav-admin/${GRAV_VERSION}${GRAV_CHANNEL_SUFFIX:-}" -O grav-admin.zip
|
wget --no-verbose "https://github.com/getgrav/grav/releases/download/${GRAV_VERSION}/grav-admin-v${GRAV_VERSION}.zip" -O grav-admin.zip
|
||||||
unzip -oq grav-admin.zip
|
unzip -oq grav-admin.zip
|
||||||
cp -rf grav-admin/. .
|
cp -rf grav-admin/. .
|
||||||
cp -rf grav-admin/user/plugins/admin2 /tmp/admin2-plugin
|
cp -rf grav-admin/user/plugins/admin2 /tmp/admin2-plugin
|
||||||
|
|||||||
Reference in New Issue
Block a user