Skip to main content

Can I deploy to KurocoFront without using GitHub?

There is a feature that allows you to download and deploy a ZIP file to KurocoFront by notifying Kuroco of the URL of a compressed ZIP file containing all the deployment files.

Compress the statically built files including kuroco_front.json into a ZIP file, place it on AWS or KurodoFiles, etc., and send a webhook.

Deployment Method

# Specify the API endpoint of your site
endpoint="https://sitekey.g.kuroco.app"

# Domain of KurocoFront specified in account management
domain="sitekey.g.kuroco-front.app"

# 40-digit hash value of the front-end domain hashed with SHA1
hash="****************************************"

# Download URL of the ZIP file
storage_url="https://sitekey.g.kuroco-img.app/files/user/deploy_file/public.zip"

# Token specified in [KurocoFront] -> [KurocoFront Settings] in the admin interface
token="************************************"

# Send the following webhook
curl -X POST "${endpoint}/direct/menu/github/" \
-H 'Content-Type: application/json;charset=utf-8' \
-H "X-Kuroco-Auth: token ${token}" \
-d "{\"data\":{\"domain\":\"${domain}\", \"hash\":\"${hash}\",\"storage_url\":\"${storage_url}\"}}"
info

Please create a ZIP file in a way that, it contains files generated by commands such as npm run build or npm run generate, and includes a set of files with kuroco_front.json immediately after the extraction.

tip

When sending a curl command from the Windows command prompt, please convert single quotes (') to double quotes ("). Additionally, since the backslash (\) is treated as an escape character, convert the newline \ to ^.

Upon a successful request to Kuroco, you will receive a response of deploy requested!.

Image from Gyazo


Support

If you have any other questions, please contact us or check out Our Slack Community.