In this example, you will use Cloud Native Build (CNB) to package the "hexo-rsync-remote" project, build the Hexo static site, and synchronize the generated files to a remote server using Rsync.
refs/stashes/1991686256591597568/main/commit
# Secret repository env.yml
RSYNC_KEY: |
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAplJz7MtuFLDrrqt7Aq6ZBQsoJbebx0tzqneBW1nNaJ0r73W0
87JoXrRvDSWC+ngHgv7YP7tASfsEd8zPBmXbt4qlBIPygfkVxJHwj6+VaooEvZIV
-----END RSA PRIVATE KEY-----
RSYNC_USER: xxx
cnb-init-from https://cnb.cool/examples/ecosystem/hexo-rsync-remote.git
Click the Fork button in the upper right corner to fork the project to your own repository. Then click the Cloud Native Development button to start remote development.
yarn install
yarn run server
