// user and pass are environment variables, stored in an .env file
const user = Deno.env.get("CMS_USER") ?? "admin";
const pass = Deno.env.get("CMS_PASSWORD") ?? "";
cms.auth({
[user]: pass,
});
// Enable git to pull/push changes
cms.git();
{
"tasks": {
// ...
"cms:prod": "deno serve -A --env-file https://deno.land/x/lume_cms_adapter@v0.2.2/mod.ts"
}
}
You can run deno task cms:prod
in your computer to check if it works fine.
The CMS should ask you for the user/pass and you should see a “Sync” button in the CMS
to push/pull changes to the git repository.
A
record in the DNS settings of your domain to the server IP. For
example, cms.example.com
.curl https://lumeland.github.io/cms-deploy/install.sh > install.sh && sh install.sh
git@github.com:user/repo.git
.cms.example.com
.