sinpro.dev
Docs
Clean Code
Objects and Data Structures
  • Company Information
    • Portfolio
    • About
    • Services
    • Events
  • Dev Environment
    • macOS Settings
    • Chrome Extensions
    • VSCode Workspace Settings
    • VSCode Workspace Extensions
    • Global NPM Packages
    • npm-check-updates
    • SvelteKit
    • Customize Zsh
    • ChatGPT Prompts
    • Tailwind CSS
    • Warp
    • Keyboard Shortcuts
  • Assets
    • Assets
    • JPG/PNG to AVIF
    • TTF to WOFF2
  • Clean Code
    • Clean Code
    • Format
    • Quality
    • Variables
    • Functions
    • Objects and Data Structures
    • Classes
    • Concurrency
    • Error handling
    • Comments
  • Code Style
    • TypeScript Config
    • Prettier
    • ESLint
    • Stylelint
  • Testing
    • Vitest
    • Playwright
  • Git
    • Git Branches and Commits
    • Git Hooks
    • Git User Profiles
    • Git for Windows
  • GitHub
    • GitHub Issues
    • GitHub Pull Requests
    • GitHub Repository Settings
    • GitHub Branch Protection
    • GitHub Actions
  • Code Quality
    • SonarCloud Coverage
  • Server
    • SSH
    • PM2
    • Caddy
    • Updating the server
    • ngrok
  • Team sinProject
    • Our Team Policy
    • Equipment and Supplies
    • Books
    • Slack
    • Locales
    • Funny Apps
    • Docs History
  • Talk
    • Talk
    • Creating a Project
    • App Structure

Server

Updating the server

Edit this page

We update the server using the following procedure.

GitHub Issues

First, create an Issue on GitHub. We also have an issue template prepared for releases.

Updating version

You can manage and change versions in package.json and package-lock.json easily using the npm version command.

Here’s how you can use it:

Bash
npm version <new-version>

In this command, replace <newversion> with the new version number (e.g., 1.0.2). Running this command updates the version numbers in both package.json and package-lock.json to the version number you specify.

Alternatively, you can use one of the following keywords in place of :

  • patch: this increments the patch version (e.g., 1.0.1 -> 1.0.2)
  • minor: this increments the minor version (e.g., 1.0.1 -> 1.1.0)
  • major: this increments the major version (e.g., 1.0.1 -> 2.0.0)

Please note that running the npm version command will create a new commit including the version update and also tag it with the new version number (this behavior can be altered in the settings).

Pushing and Merging

  1. Create a PR (Pull Request). In this case, since the issue is not closed, it is not necessary to rewrite the template.
  2. Merge the PR (Pull Request) without any checks.
  3. Push the created tag to origin.

GitHub

  1. Attach the enhancement label to closed PRs that appear to be feature enhancements.
  2. Open the release creation page on GitHub and click the Draft a new release button.
  3. Select the newly created tag with Choose a tag.
  4. Press the Generate release notes button.
  5. Delete the Release section of the automatically generated release notes.
  6. Preview to check for any problems.
  7. If there are no problems, press the Publish release button to create the release.

Connecting Server

Connect to the server using the ssh dev@sinpro-dev command.

Updating

Execute the following command.

Bash
cd ~/dev/sinpro-dev
git checkout main && git pull
npm i --legacy-peer-deps
npm run build
pm2 restart sinpro-dev

Checking

  1. Connect to https://sinpro.dev/
  2. Confirm that the version has been updated.
  3. Confirm that there are no issues with the display.
  4. Confirm that there are no issues with the operation.

Announcement

  1. If there are additions or updates to the documentation, announce them to the members.
  2. Request the product manager to make an announcement on social media.
Caddy ngrok
© sinProject. v0.73.0
On this page
  • Updating the server
  • GitHub Issues
  • Updating version
  • Pushing and Merging
  • GitHub
  • Connecting Server
  • Updating
  • Checking
  • Announcement