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
# This command is for AWS S3 asset-storage strategies. If you are using local files please use the `sync_remote_local` job. | |
#!/bin/sh | |
## Custom `sync` command to sync two remote dbs and files | |
## Usage: fin sync_remote <source_environment> <destination_environment> <"db"> <"files"|"assets"> | |
BLUE=\\x1B[34m | |
YELLOW=\\x1B[33m | |
GREEN=\\x1B[32m |
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
# This command is for local-asset-storage strategies. If you are using AWS please use the `sync_remote_aws` job. | |
#!/bin/sh | |
## Custom `sync` command to sync two remote dbs & files | |
## Usage: fin sync_remote <source_environment> <destination_environment> | |
BLUE=\\x1B[34m | |
YELLOW=\\x1B[33m | |
GREEN=\\x1B[32m |
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/sh | |
BLUE=\\x1B[34m | |
YELLOW=\\x1B[33m | |
GREEN=\\x1B[32m | |
RED=\\x1B[31m | |
RESET=\\x1b[0m | |
REMOTE_ENV=$1 |
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/sh | |
# This command is useful for when you are storing assets in S3. If storing locally, please use the `sync_local.sh` job. | |
## Custom `sync` command to sync your local db with a remote env. | |
## NOTE THAT THIS WILL REPLACE YOUR EXISTING DATABASE | |
## Usage: fin sync <environment> <"db"> <"files"|"assets"> | |
BLUE=\\x1B[34m | |
YELLOW=\\x1B[33m |
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/sh | |
# This command is used for when assets are stored locally. For AWS syncing, see sync_aws.sh | |
## Custom `pull` command to sync your local db with a remote env. | |
## NOTE THAT THIS WILL REPLACE YOUR EXISTING DATABASE | |
## Usage: fin sync | |
BLUE=\\x1B[34m | |
YELLOW=\\x1B[33m |
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/sh | |
BLUE=\\x1B[34m | |
YELLOW=\\x1B[33m | |
GREEN=\\x1B[32m | |
RED=\\x1B[31m | |
RESET=\\x1b[0m | |
## Easy way to SSH into a psh env | |
## Usage: fin ssh <environment> |
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
# This is dependent on other jobs. Please download them from gist.github.com/mattbloomfield | |
#!/bin/sh | |
BLUE=\\x1B[34m | |
YELLOW=\\x1B[33m | |
GREEN=\\x1B[32m | |
RED=\\x1B[31m | |
RESET=\\x1b[0m |
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/sh | |
BLUE=\\x1B[34m | |
YELLOW=\\x1B[33m | |
GREEN=\\x1B[32m | |
RED=\\x1B[31m | |
RESET=\\x1b[0m | |
## Replicates a deploy in a platform.sh environment | |
## Usage: fin replicate_deploy |
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
"use strict"; | |
module.exports.endpoint = async (event, context, callback) => { | |
const queryParams = event.queryStringParameters; | |
if (!queryParams) callback("No query params"); | |
const devUser = queryParams.user; | |
const site = queryParams.site; | |
const key = queryParams.key; |
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/sh | |
BLUE=\\x1B[34m | |
YELLOW=\\x1B[33m | |
GREEN=\\x1B[32m | |
RED=\\x1B[31m | |
RESET=\\x1b[0m | |
## Useful to refresh your local .env file | |
## Usage: fin refresh_env |
NewerOlder