This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function update_packages() { | |
echo -e "\n📦 Updating packages... 📦\n" | |
apt-get update -y | |
apt-get upgrade -y | |
apt-get autoremove -y | |
apt-get autoclean -y | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fetch = require('node-fetch'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const readline = require('readline'); | |
const ghostEndpoint = 'https://ghostcms.com/content/posts/'; | |
const strapiEndpoint = 'https://strapiinstance.com/api/blogs'; | |
async function fetchData() { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function update_packages() { | |
echo -e "\n📦 Updating packages... 📦\n" | |
apt-get update -y | |
apt-get upgrade -y | |
apt-get dist-upgrade -y | |
apt-get autoremove -y | |
apt-get autoclean -y | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const utils = require("@strapi/utils"); | |
const { ApplicationError } = utils.errors; | |
const isDisconnecting = (disconnectArray, entityValue) => { | |
return disconnectArray.length && entityValue !== null; | |
}; | |
module.exports = { | |
async beforeUpdate(event) { | |
const { data, where } = event.params; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.9' | |
services: | |
# Strapi Dev Enviroment | |
strapidev: | |
container_name: strapi_dev | |
build: | |
context: . | |
dockerfile: Dockerfile | |
args: | |
NODE_ENV: ${NODE_ENV} |