Skip to content

Instantly share code, notes, and snippets.

View Plopix's full-sized avatar
🤠
Coding...

Sébastien Morel Plopix

🤠
Coding...
View GitHub Profile

Platform.sh to Upsun - Environment Variables migration script

The script assumes that you have the underlying permissions and that your shell is logged in.

Run the following in the project directory:

curl -fsSL https://gist.github.com/Plopix/72851fd834395d154586b4ed2680310e/raw/migrate-env-vars-from-platformsh-to-upsun.js | node - <source-cli>:<source-project-id>:<source-env> <target-cli>:<target-project-id>:<target-env>
@Plopix
Plopix / README.md
Last active June 3, 2024 21:15
Remix Migration Scripts

Remix Run - Route V2 Migration Script

Following the rules defined here: https://remix.run/docs/en/main/pages/v2

Run the following in the project directory:

curl -fsSL https://gist.github.com/Plopix/58fc3f3be202d9915c466e71077d36a2/raw/migrate-to-v2-routing.bash | bash -s I_ROUTES_FOLDER O_ROUTES_FOLDER
@Plopix
Plopix / convert_psh_redirect_to_fastly_table.php
Last active July 29, 2021 21:59
Convert Platform.sh Redirect to Table for Fastly
<?php
require __DIR__.'./../../../ezplatform/vendor/autoload.php';
// At least one table
$tableCount = 1;
// to skip the N first routes
$skipFirst = getenv('SKIP') ? : 0;
$projectName = getenv('PROJECTNAME') ? : 'project';