mirror of
https://ghproxy.net/https://github.com/serpwings/static-wordpress.git
synced 2025-10-04 06:00:34 +08:00
Merge pull request #41 from seowings/main
Better Logging for Simply Static Post Processing #39 #18
This commit is contained in:
commit
ad2c1e5757
1 changed files with 9 additions and 1 deletions
10
ss_script.py
10
ss_script.py
|
@ -28,7 +28,9 @@ specific language governing rights and limitations under the License.
|
|||
# +++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
import logging
|
||||
|
||||
# +++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# INTERNAL IMPORTS
|
||||
|
@ -38,6 +40,12 @@ from src.staticwordpress.core.workflow import Workflow
|
|||
from src.staticwordpress.core.constants import SOURCE, HOST
|
||||
|
||||
if __name__ == "__main__":
|
||||
logging.basicConfig(
|
||||
format="%(asctime)s - %(levelname)s - %(message)s",
|
||||
level=logging.DEBUG,
|
||||
stream=sys.stdout,
|
||||
)
|
||||
|
||||
env_wp_user = os.environ.get("user")
|
||||
env_wp_api_token = os.environ.get("token")
|
||||
env_src_url = os.environ.get("src")
|
||||
|
@ -73,5 +81,5 @@ if __name__ == "__main__":
|
|||
ss_zip_obj.setup_zip_folders()
|
||||
ss_zip_obj.add_404_page()
|
||||
ss_zip_obj.add_robots_txt()
|
||||
# ss_zip_obj.add_redirects() # temporarily disabled redirects #39
|
||||
ss_zip_obj.add_redirects()
|
||||
ss_zip_obj.add_search()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue