From a8d1efdd1eaed3ebf1a7057d5cc2ce63cb0e5c49 Mon Sep 17 00:00:00 2001 From: Ben Keith Date: Wed, 5 Jun 2019 17:25:27 -0400 Subject: [PATCH] Remove fab, INN/deploy-tools, requirements.txt --- .gitmodules | 3 --- README.md | 41 ++++------------------------------- fabfile.py | 56 ------------------------------------------------ requirements.txt | 3 --- tools | 1 - 5 files changed, 4 insertions(+), 100 deletions(-) delete mode 100644 fabfile.py delete mode 100644 requirements.txt delete mode 160000 tools diff --git a/.gitmodules b/.gitmodules index 5f75d24..92de067 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ [submodule "wp-content/themes/largo"] path = wp-content/themes/largo url = https://github.com/INN/largo.git -[submodule "tools"] - path = tools - url = https://github.com/INN/deploy-tools.git diff --git a/README.md b/README.md index 439f0d8..88e895d 100644 --- a/README.md +++ b/README.md @@ -1,46 +1,13 @@ -## Setup instructions - -This repository is designed to be set up in accordance with the VVV install instructions in INN/docs, that were introduced with https://github.com/INN/docs/pull/148 +# WisconsinWatch.org -To get started, open a new terminal window. -Navigate to the vagrant-local/www directory. -And then run: +## Setup instructions -``` -vv create -``` -You'll then see a series of prompts. Respond thusly: +This repository is designed to be set up in accordance with INN's umbrella repo process, as described in https://github.com/INN/docs/blob/master/projects/largo/umbrella-setup.md Prompt | Text to enter ------------ | ------------- Name of new site directory: | wcij -Blueprint to use (leave blank for none or use largo): | largo -Domain to use (leave blank for largo-umbrella.dev): | wcij.dev -WordPress version to install (leave blank for latest version or trunk for trunk/nightly version): | *hit [Enter]* +Domain to use (leave blank for largo-umbrella.dev): | wcij.test Install as multisite? (y/N): | n -Install as subdomain or subdirectory? : | subdomain -Git repo to clone as wp-content (leave blank to skip): | *hit [Enter]* -Local SQL file to import for database (leave blank to skip): | *This filename must be an absolute path, so the easiest thing to do on a Mac is to drag your mysql file into your terminal window here: the absolute filepath with fill itself in. Absolute filepaths begin from `/` and go all the way to the file.* -Remove default themes and plugins? (y/N): | y -Add sample content to site (y/N): | N -Enable WP_DEBUG and WP_DEBUG_LOG (y/N): | N - -After reviewing the options and creating the new install (you'll be prompted part way through the install process to provide your admin password), proceed with the following steps: - -1. `cd` to the directory `wcij/` in your VVV setup -2. `git clone git@github.com:INN/umbrella-wcij.git` -3. `cd umbrella-wcij` -4. `git submodule update --init` to pull down all of the submodules you need (including, crucially, the tools repo) -5. `cd ..` -6. Copy the contents of the new directory `umbrella-wcij/` into `htdocs/`, including all hidden files whose names start with `.` periods. - - the easy way to do this is: `rsync -rv umbrella-wcij/ htdocs` - - afterwards, you may want to `rm -rf umbrella-wcij` to save disk space -7. `cd htdocs` to move to the folder where the umbrella now lives -8. `workon fabric` -9. `fab production wp.fetch_sql_dump` (or download via FTP if this doesn't work) -10. `fab vagrant.reload_db:mysql.sql` -11. Search and replace 'wcij.wpengine.com' --> 'wcij.dev' in the db (options for doing this are covered in the [largo umbrella setup instructions](https://github.com/INN/docs/blob/master/projects/largo/umbrella-setup.md) -12. Optionally, you may want to pull down recent uploads so you have images, etc. to work with locally. -13. Visit wcij.dev in your browser and you should see the site! diff --git a/fabfile.py b/fabfile.py deleted file mode 100644 index 907af65..0000000 --- a/fabfile.py +++ /dev/null @@ -1,56 +0,0 @@ -import os - -from tools.fablib import * - -from fabric.api import task - -""" -Base configuration -""" -env.project_name = 'wcij' -env.file_path = '.' - -env.sftp_deploy = True - -try: - env.domain -except AttributeError: - env.domain = 'wcij.dev' - -try: - env.hipchat_token = os.environ['HIPCHAT_DEPLOYMENT_NOTIFICATION_TOKEN'] - env.hipchat_room_id = os.environ['HIPCHAT_DEPLOYMENT_NOTIFICATION_ROOM_ID'] -except KeyError: - pass - -# Environments -@task -def production(): - """ - Work on production environment - """ - env.settings = 'production' - env.hosts = [os.environ['WCIJ_PRODUCTION_SFTP_HOST'], ] - env.path = os.environ['WCIJ_PRODUCTION_SFTP_PATH'] - env.user = os.environ['FLYWHEEL_SFTP_USER'] - env.password = os.environ['FLYWHEEL_SFTP_PASS'] - env.domain = 'www.wisconsinwatch.org' - env.port = 22 - -@task -def staging(): - """ - Work on staging environment - """ - env.settings = 'staging' - env.hosts = [os.environ['WCIJ_STAGING_SFTP_HOST'], ] - env.path = os.environ['WCIJ_STAGING_SFTP_PATH'] - env.user = os.environ['FLYWHEEL_SFTP_USER'] - env.password = os.environ['FLYWHEEL_SFTP_PASS'] - env.domain = 'staging.wisconsinwatch.flywheelsites.com' - env.port = 22 - -try: - from local_fabfile import * -except ImportError: - pass diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index b57b9cc..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -Fabric==1.8.3 -pyquery==1.2.9 -requests==2.5.0 diff --git a/tools b/tools deleted file mode 160000 index 6062fde..0000000 --- a/tools +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6062fde88cbd1823be1fa7d0d1ef6cc8e1e6a0ef