Deploy Waline comment website system by Vercel, no need for a server to run it, its free.
Introduction:
- Vercel is a fast deploy front application platform, no need for a server to run it, its free.
- Vercel website: https://vercel.com/dashboard
- Waline supports the comment service and record page view statistics service.
- Waline guide: https://waline.js.org/guide/get-started/
Deploy
Click to deploy: Deploy
Click completely after will forward to Vercel’s official website, and prompt you to create a project about Waline, then you need to choose Github option.
Note: Created a Github account on Vercel then log in to the Waline you created then the account is an admin account, you can use this account to manage comments.
Repository Name input you want setting up, then click the ‘Create’ button.
Wait to create finish then click ‘Go to Dashboard’ forward to the project’s dashboard, click ‘Settings’ then click ‘Environment Variables’, in here you can set up the project environment variables.
Environment Variables guide: https://waline.js.org/reference/server/env.html
Comments notice guide: https://waline.js.org/guide/features/notification.html#%E9%BB%98%E8%AE%A4%E6%A8%A1%E6%9D%BF
You can use the free service of LeanCloud to store your website comments data if you do not mind data storage problems. Then, you can log in LeanCloud to create an application to find the App ID, App Key, and Master Key then set up the project of Vercel Environment Variables
Do not set up environment variables about LeanCloud if you use Mysql service to store your comments data.
Click the ‘Save’ button when the environment variables configure finished. Then click ‘Deployments’ above the page, click a new deploy recent then click ‘Redeploy’ for redeploy. Waiting for redeploy finish, then able to use.
Note: Need redeploy if environment variables changed.
Create a project of Vercel again if your two websites for use the same Waline service if you want.
Environment variables need the same config, pointed Mysql also needs the same. Of course, either the ‘SITE_NAME’ or ‘SITE_URL’ of environment variables point to corresponding websites.