shipit-cli 0.19.5__tar.gz → 0.19.6.dev0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/PKG-INFO +1 -1
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/pyproject.toml +1 -1
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/assets/php/php.ini +1 -1
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/assets/wordpress/install.sh +15 -11
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/assets/wordpress/wp-config.php +4 -9
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/providers/wordpress.py +5 -5
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/runners/wasmer.py +15 -15
- shipit_cli-0.19.6.dev0/src/shipit/version.py +5 -0
- shipit_cli-0.19.5/src/shipit/version.py +0 -5
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/.gitignore +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/README.md +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/__init__.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/assets/wordpress/.htaccess +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/assets/wordpress/start.php +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/builders/__init__.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/builders/base.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/builders/docker.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/builders/local.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/cli.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/generator.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/procfile.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/providers/base.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/providers/go.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/providers/hugo.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/providers/jekyll.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/providers/laravel.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/providers/mkdocs.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/providers/node_static.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/providers/php.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/providers/python.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/providers/registry.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/providers/staticfile.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/runners/__init__.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/runners/base.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/runners/local.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/shipit_types.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/ui.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/utils.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/src/shipit/volumes.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/tests/test_cli_after_deploy.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/tests/test_e2e.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/tests/test_generate_shipit_examples.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/tests/test_php_provider.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/tests/test_staticfile_provider.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/tests/test_version.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/tests/test_volumes.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/tests/test_wasmer_annotations.py +0 -0
- {shipit_cli-0.19.5 → shipit_cli-0.19.6.dev0}/tests/test_wordpress_phpix.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: shipit-cli
|
|
3
|
-
Version: 0.19.
|
|
3
|
+
Version: 0.19.6.dev0
|
|
4
4
|
Summary: Shipit CLI is the best way to build, serve and deploy your projects anywhere.
|
|
5
5
|
Project-URL: homepage, https://wasmer.io
|
|
6
6
|
Project-URL: repository, https://github.com/wasmerio/shipit
|
|
@@ -11,6 +11,10 @@ WP_LOCALE=${WP_LOCALE:-"en_US"}
|
|
|
11
11
|
WP_SITEURL=${WP_SITEURL:-"http://localhost"}
|
|
12
12
|
WP_SITE_TITLE=${WP_SITE_TITLE:-"WordPress"}
|
|
13
13
|
|
|
14
|
+
wp() {
|
|
15
|
+
php /opt/assets/wp-cli.phar --allow-root --path=/app "$@"
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
if wp core is-installed; then
|
|
15
19
|
echo "🚀 Setting up WordPress from an existing installation"
|
|
16
20
|
if [ "${WP_UPDATE_DB:-true}" = "true" ]; then
|
|
@@ -26,17 +30,17 @@ else
|
|
|
26
30
|
echo "📁 Initializing wp-content..."
|
|
27
31
|
|
|
28
32
|
mkdir -p wp-content/plugins
|
|
29
|
-
mkdir -p wp-content/themes
|
|
33
|
+
# mkdir -p wp-content/themes
|
|
30
34
|
mkdir -p wp-content/upgrade
|
|
31
35
|
|
|
32
|
-
if [ -n "${WPCONTENT_BASE_PATH:-}" ] && [ -d "${WPCONTENT_BASE_PATH}" ]; then
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
fi
|
|
36
|
+
# if [ -n "${WPCONTENT_BASE_PATH:-}" ] && [ -d "${WPCONTENT_BASE_PATH}" ]; then
|
|
37
|
+
# shopt -s dotglob nullglob
|
|
38
|
+
# # Note: change this back to copy all, once using the WP Zip files
|
|
39
|
+
# # cp -R "${WPCONTENT_BASE_PATH}"/* /app/wp-content
|
|
40
|
+
# cp -R "${WPCONTENT_BASE_PATH}"/plugins/* /app/wp-content/plugins || true
|
|
41
|
+
# cp -R "${WPCONTENT_BASE_PATH}"/themes/twentytwenty* /app/wp-content/themes || true
|
|
42
|
+
# shopt -u dotglob nullglob
|
|
43
|
+
# fi
|
|
40
44
|
|
|
41
45
|
echo "⚙️ Installing WordPress core"
|
|
42
46
|
|
|
@@ -48,8 +52,8 @@ else
|
|
|
48
52
|
--admin_email="$WP_ADMIN_EMAIL" \
|
|
49
53
|
--locale="$WP_LOCALE"
|
|
50
54
|
|
|
51
|
-
echo "🔄 Setting permalinks"
|
|
52
|
-
wp rewrite structure '/%year%/%monthnum%/%day%/%postname%/'
|
|
55
|
+
# echo "🔄 Setting permalinks"
|
|
56
|
+
# wp rewrite structure '/%year%/%monthnum%/%day%/%postname%/'
|
|
53
57
|
fi
|
|
54
58
|
|
|
55
59
|
# Install plugins from WP_PLUGINS environment variable
|
|
@@ -121,16 +121,11 @@ define('SECURE_AUTH_SALT', get_env_var('SECURE_AUTH_SALT', 'no secret provided')
|
|
|
121
121
|
define('LOGGED_IN_SALT', get_env_var('LOGGED_IN_SALT', 'no secret provided'));
|
|
122
122
|
define('NONCE_SALT', get_env_var('NONCE_SALT', 'no secret provided'));
|
|
123
123
|
|
|
124
|
+
$https =
|
|
125
|
+
(!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') ||
|
|
126
|
+
(!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) === 'https');
|
|
124
127
|
|
|
125
|
-
|
|
126
|
-
&& isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] )
|
|
127
|
-
&& 'https' === strtolower( $_SERVER['HTTP_X_FORWARDED_PROTO'] )
|
|
128
|
-
) {
|
|
129
|
-
// We need to actually set it so WP would know it's behind TLS.
|
|
130
|
-
$_SERVER['HTTPS'] = '1';
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
$scheme = isset( $_SERVER['HTTPS'] ) && '1' === (string) $_SERVER['HTTPS'] ? "https://" : "http://";
|
|
128
|
+
$scheme = $https ? 'https://' : 'http://';
|
|
134
129
|
|
|
135
130
|
if (!defined('WP_HOME')) {
|
|
136
131
|
define( 'WP_HOME', get_env_var('WP_HOME', isset($_SERVER['HTTP_HOST']) ? ($scheme . $_SERVER['HTTP_HOST'] ): "http://localhost"));
|
|
@@ -77,10 +77,10 @@ class WordPressProvider(PhpProvider):
|
|
|
77
77
|
'copy("wordpress/.htaccess", "{}/.htaccess".format(app.path), base="assets")'
|
|
78
78
|
)
|
|
79
79
|
return steps + super().build_steps_with_options(
|
|
80
|
-
extra_ignore=[
|
|
80
|
+
extra_ignore=[],
|
|
81
81
|
after_install=None,
|
|
82
82
|
after_build=None
|
|
83
|
-
) + ['copy("wp-content", "{}".format(wpcontent_base.path))']
|
|
83
|
+
) # + ['copy("wp-content", "{}".format(wpcontent_base.path))']
|
|
84
84
|
|
|
85
85
|
def prepare_steps(self) -> Optional[list[str]]:
|
|
86
86
|
return super().prepare_steps()
|
|
@@ -94,13 +94,13 @@ class WordPressProvider(PhpProvider):
|
|
|
94
94
|
'-t {}".format(assets.serve_path, PORT, app.serve_path)'
|
|
95
95
|
)
|
|
96
96
|
return {
|
|
97
|
-
"wp": '"php {}/wp-cli.phar --allow-root --path={}".format(assets.serve_path, app.serve_path)',
|
|
97
|
+
# "wp": '"php {}/wp-cli.phar --allow-root --path={}".format(assets.serve_path, app.serve_path)',
|
|
98
98
|
"after_deploy": '"bash {}/setup-wp.sh".format(assets.serve_path)',
|
|
99
99
|
**commands,
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
def mounts(self) -> list[MountSpec]:
|
|
103
|
-
return super().mounts() + [MountSpec("wpcontent_base")]
|
|
103
|
+
return super().mounts() # + [MountSpec("wpcontent_base")]
|
|
104
104
|
|
|
105
105
|
def volumes(self) -> list[VolumeSpec]:
|
|
106
106
|
return [
|
|
@@ -114,7 +114,7 @@ class WordPressProvider(PhpProvider):
|
|
|
114
114
|
def env(self) -> Optional[Dict[str, str]]:
|
|
115
115
|
return {
|
|
116
116
|
"PAGER": '"cat"',
|
|
117
|
-
"WPCONTENT_BASE_PATH": '"{}".format(wpcontent_base.serve_path)',
|
|
117
|
+
# "WPCONTENT_BASE_PATH": '"{}".format(wpcontent_base.serve_path)',
|
|
118
118
|
**(super().env() or {}),
|
|
119
119
|
}
|
|
120
120
|
|
|
@@ -149,28 +149,28 @@ class WasmerRunner:
|
|
|
149
149
|
},
|
|
150
150
|
"phpix": {
|
|
151
151
|
"dependencies": {
|
|
152
|
-
"latest": "phpix/phpix-83-32bit@=0.2.0-alpha.
|
|
153
|
-
"8.3": "phpix/phpix-83-32bit@=0.2.0-alpha.
|
|
154
|
-
"8.3.29": "phpix/phpix-83-32bit@=0.2.0-alpha.
|
|
155
|
-
"8.2": "phpix/phpix-82-32bit@=0.2.0-alpha.
|
|
156
|
-
"8.1": "phpix/phpix-81-32bit@=0.2.0-alpha.
|
|
152
|
+
"latest": "phpix/phpix-83-32bit@=0.2.0-alpha.5",
|
|
153
|
+
"8.3": "phpix/phpix-83-32bit@=0.2.0-alpha.5",
|
|
154
|
+
"8.3.29": "phpix/phpix-83-32bit@=0.2.0-alpha.5",
|
|
155
|
+
"8.2": "phpix/phpix-82-32bit@=0.2.0-alpha.5",
|
|
156
|
+
"8.1": "phpix/phpix-81-32bit@=0.2.0-alpha.5",
|
|
157
157
|
"7.4": "php/php-32@=7.4.3301", # Note, we don't have PHPix + PHP 7.4 yet
|
|
158
158
|
},
|
|
159
159
|
"architecture_dependencies": {
|
|
160
160
|
"64-bit": {
|
|
161
|
-
"latest": "phpix/phpix-83-64bit@=0.2.0-alpha.
|
|
162
|
-
"8.3": "phpix/phpix-83-64bit@=0.2.0-alpha.
|
|
163
|
-
"8.3.29": "phpix/phpix-83-64bit@=0.2.0-alpha.
|
|
164
|
-
"8.2": "phpix/phpix-82-64bit@=0.2.0-alpha.
|
|
165
|
-
"8.1": "phpix/phpix-81-64bit@=0.2.0-alpha.
|
|
161
|
+
"latest": "phpix/phpix-83-64bit@=0.2.0-alpha.5",
|
|
162
|
+
"8.3": "phpix/phpix-83-64bit@=0.2.0-alpha.5",
|
|
163
|
+
"8.3.29": "phpix/phpix-83-64bit@=0.2.0-alpha.5",
|
|
164
|
+
"8.2": "phpix/phpix-82-64bit@=0.2.0-alpha.5",
|
|
165
|
+
"8.1": "phpix/phpix-81-64bit@=0.2.0-alpha.5",
|
|
166
166
|
"7.4": "php/php-64@=7.4.3301",
|
|
167
167
|
},
|
|
168
168
|
"32-bit": {
|
|
169
|
-
"latest": "phpix/phpix-83-32bit@=0.2.0-alpha.
|
|
170
|
-
"8.3": "phpix/phpix-83-32bit@=0.2.0-alpha.
|
|
171
|
-
"8.3.29": "phpix/phpix-83-32bit@=0.2.0-alpha.
|
|
172
|
-
"8.2": "phpix/phpix-82-32bit@=0.2.0-alpha.
|
|
173
|
-
"8.1": "phpix/phpix-81-32bit@=0.2.0-alpha.
|
|
169
|
+
"latest": "phpix/phpix-83-32bit@=0.2.0-alpha.5",
|
|
170
|
+
"8.3": "phpix/phpix-83-32bit@=0.2.0-alpha.5",
|
|
171
|
+
"8.3.29": "phpix/phpix-83-32bit@=0.2.0-alpha.5",
|
|
172
|
+
"8.2": "phpix/phpix-82-32bit@=0.2.0-alpha.5",
|
|
173
|
+
"8.1": "phpix/phpix-81-32bit@=0.2.0-alpha.5",
|
|
174
174
|
"7.4": "php/php-32@=7.4.3301",
|
|
175
175
|
},
|
|
176
176
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|