- Wizard needs a correct arch/ setup
- The wizard command, when not on scripts, should automatically SSH to
scripts and start executing there?
-- Write the code to make Wordpress figure out its URL from the database
- Remerges aren't reflected in the parent files, so `git diff` output is
spurious. Not sure how to fix this w/o tree hackery.
import distutils
import urlparse
import hashlib
+import sqlalchemy.exc
from wizard import app, install, resolve, sql, util
from wizard.app import php
install_schema = install.ArgSchema("db", "admin", "email", "title")
deprecated_keys = set(['WIZARD_SECRETKEY'])
random_keys = set(['WIZARD_SECRETKEY', 'WIZARD_AUTH_KEY', 'WIZARD_SECURE_AUTH_KEY', 'WIZARD_LOGGED_IN_KEY', 'WIZARD_NONCE_KEY'])
+ def urlFromExtract(self, deployment):
+ try:
+ meta = sql.connect(deployment.dsn)
+ wp_options = meta.tables["wp_options"]
+ return wp_options.select('option_value').where(wp_options.c.option_name == 'home')
+ except sqlalchemy.exc.OperationalError:
+ return None
def download(self, version):
return "http://wordpress.org/wordpress-%s.tar.gz" % version
def checkConfig(self, deployment):