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
$url = "//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"; | |
$path_query = wp_parse_url( $url ); | |
// Language process | |
$lang = substr( get_bloginfo ( 'language' ), 0, 2 ); | |
$path_query_process = str_replace( '/' . $lang , '' , $path_query['path']); | |
//Strip slash | |
$path_query_process = trim( $path_query_process, "/" ); |
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
2023-02-08T07:42:19.329087Z Cloning repository... | |
2023-02-08T07:42:21.63425Z From https://github.com/webo-agency/webo-agency | |
2023-02-08T07:42:21.634888Z * branch 4da6a6d636c511687c557feac52830e7355f292c -> FETCH_HEAD | |
2023-02-08T07:42:21.635077Z | |
2023-02-08T07:42:21.860435Z HEAD is now at 4da6a6d temp case studies filters removal | |
2023-02-08T07:42:21.861085Z | |
2023-02-08T07:42:22.006337Z | |
2023-02-08T07:42:22.03376Z Success: Finished cloning repository files | |
2023-02-08T07:42:22.685266Z Installing dependencies | |
2023-02-08T07:42:22.696157Z Python version set to 2.7 |
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
#As first script | |
\curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/lftp.sh | bash -s | |
#As second script - use enviroment | |
# Options for LFTP | |
#echo "debug" >> ~/.lftprc; | |
#echo "set log:enabled true" >> ~/.lftprc; | |
echo "set ftp:ssl-protect-data false" >> ~/.lftprc; | |
echo "set ftp:ssl-force false" >> ~/.lftprc; | |
echo "set ftp:ssl-allow false" >> ~/.lftprc; |