Created
September 1, 2026 07:30
-
-
Save iam4x/0aeecae50d4f7d56dbc8a46fb9f2733d to your computer and use it in GitHub Desktop.
Update t3@nightly service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| npx -y t3@nightly service update | |
| systemctl --user stop t3code.service | |
| version="$(npx -y t3@nightly --version | sed 's/^t3 v//')" | |
| cd ~/.t3/runtime/versions/$version && \ | |
| npm install-scripts approve node-pty && \ | |
| npm install-scripts approve msgpackr-extract && \ | |
| npm rebuild node-pty msgpackr-extract | |
| sed -i '/Environment=T3_BOOT_SERVICE_UNIT=t3code.service/a Environment=T3CODE_HOST=0.0.0.0' \ | |
| ~/.config/systemd/user/t3code.service | |
| systemctl --user daemon-reload | |
| systemctl --user restart t3code.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment