一键导入
emulinkerk-deploy-nue
Builds, deploys, and restarts the EmuLinker-K server on the 'nue-prod' EC2 instance safely by checking the server status first.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Builds, deploys, and restarts the EmuLinker-K server on the 'nue-prod' EC2 instance safely by checking the server status first.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Best practices and rules for Git version control, branch management, pull requests, and commit/PR descriptions.
Guides the agent through step-by-step checklists to safely compile, tag, release, and promote versions (dev, beta, prod) of EmuLinker-K.
Inspects the remote EmuLinker-K server log file via SSH to determine the active users, active games, and their current states.
| name | emulinkerk-deploy-nue |
| description | Builds, deploys, and restarts the EmuLinker-K server on the 'nue-prod' EC2 instance safely by checking the server status first. |
This skill guides the agent to safely build and deploy a new version of the EmuLinker-K server to the nue-prod instance. It ensures that the deployment doesn't interrupt active players by calling the server status skill before restarting.
Run this skill to deploy the current local changes to nue-prod.
Run the Gradle clean task and compile the fat JAR:
./gradlew clean :emulinker:jar -PprodBuild=true
Check the version in emulinker/build.gradle.kts (look for version = "<VERSION>"). The built jar is located at ./emulinker/build/libs/emulinker-k-<VERSION>.jar.
Generate a timestamp in YYYYMMHH format:
TIMESTAMP=$(date +%Y%m%H)
Copy the JAR to the remote server using scp, appending the timestamp and -DEV:
scp ./emulinker/build/libs/emulinker-k-<VERSION>.jar ec2-user@nue-prod:/home/ec2-user/EmuLinker-K/lib/emulinker-k-<VERSION>-${TIMESTAMP}-DEV.jar
Use the emulinkerk-server-status skill with:
ec2-user@nue-prod/home/ec2-user/EmuLinker-K/emulinker.logDetermine if the server is safe to restart:
If the server is not empty, report the current active games and users to the user.
Restart the remote server in a combined SSH command:
ssh ec2-user@nue-prod "cd /home/ec2-user/EmuLinker-K && ./stop-server.sh && ./start-server.sh --jar ./lib/emulinker-k-<VERSION>-${TIMESTAMP}-DEV.jar"
Print the output returned by the script directly to verify successful boot.
--jar override when starting the server, which runs the old default production JAR instead of the newly deployed one.