{"id":22800884,"url":"https://github.com/colindembovsky/ghost","last_synced_at":"2025-03-30T19:26:50.717Z","repository":{"id":42880338,"uuid":"253946031","full_name":"colindembovsky/ghost","owner":"colindembovsky","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-11T02:04:43.000Z","size":4232,"stargazers_count":2,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T22:19:45.214Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/colindembovsky.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-08T00:39:13.000Z","updated_at":"2023-07-03T03:45:07.000Z","dependencies_parsed_at":"2023-01-26T13:46:56.770Z","dependency_job_id":null,"html_url":"https://github.com/colindembovsky/ghost","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colindembovsky%2Fghost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colindembovsky%2Fghost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colindembovsky%2Fghost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colindembovsky%2Fghost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colindembovsky","download_url":"https://codeload.github.com/colindembovsky/ghost/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246367813,"owners_count":20765933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-12T08:08:20.117Z","updated_at":"2025-03-30T19:26:50.683Z","avatar_url":"https://github.com/colindembovsky.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convert from Colin's ALM Corner MiniBlog to Ghost\nRepo for converting posts from MiniBlog to Ghost\n\n## Creating Docker Image\n```\n# issoUrl\n# do this before you build the image - remember not to check in the post.hbs :-/\n$issoUrl=\"...\" \nsed -i \"s|ISSOURL|$issoUrl|g\" themes/casper-colin/post.hbs\n\n# dev\ndocker build . -t cacregistry.azurecr.io/ghost:dev\n\n# prod image\ndocker build . --build-arg mode=production -t cacregistry.azurecr.io/ghost:prod\n\n# running in dev\naz storage account keys list -g $rg -n $saName --query [0].value -o tsv\n$azkey=\"\u003caz storage key\u003e\"\n\ndocker run -d --name ghost -e url=http://192.168.1.13:3001 -e AZURE_STORAGE_CONNECTION_STRING=$azkey -p 3001:2368 cacregistry.azurecr.io/ghost:dev\n```\n\n## Upload image files\n```\n$key=\"\u003caz storage key\u003e\"\naz storage blob upload-batch --connection-string $key -d ghostcontent --destination-path images/files -s ../files/\n```\n\n## Import posts\n```\n# download posts from old storage account to folder 'exported'\nyarn install\nyarn go\n```\n\nThis creates `import.json`. Navigate to ghost/labs page and import this file.\n\n## Infrastructure\n1. Resource Group\n1. Storage account\n    - create container `ghostcontent`\n    - create folder `images`\n    - update images folder to public (read) access\n1. Create CDN (MSFT standard) for storage account\n1. Update CDN URL in the `index.ts` file (near bottom) to account for URL updates for images\n\n# Local Dev and Testing\nTo test locally, see the `/infra/dev.sh` script.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolindembovsky%2Fghost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolindembovsky%2Fghost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolindembovsky%2Fghost/lists"}