Giter Club home page Giter Club logo

Comments (9)

mikemadison13 avatar mikemadison13 commented on July 17, 2024

current status: I am following the basic directions on https://www.drupal.org/node/27882.

I have a local copy of the site in a VM and used wget to pull everything out. The biggest issue currently is that all files have hard coded urls to the prod url. These either need to be changed or they need to be replaced with the new relative url.

from drupal-govcon-2017.

aweingarten avatar aweingarten commented on July 17, 2024

@mikemadison13 you should be able to do a quick find replace in PHPstorm to get that done without too much pain and suffering

from drupal-govcon-2017.

mikemadison13 avatar mikemadison13 commented on July 17, 2024

yeah @aweingarten, it's more a question of "what to make it"

from drupal-govcon-2017.

timwood avatar timwood commented on July 17, 2024

@mikemadison13 an you document which tool you used from the directions on d.o. and the exact command and anything else that might be useful?

from drupal-govcon-2017.

mikemadison13 avatar mikemadison13 commented on July 17, 2024

Essentially:

  1. setup local copy of site (including repo, vm, files, and db). note: the 2016 version of the site has an older version of DrupalVM and I couldn't actually provision it. I instead used the 2017 d8 site's VM temporarily for the 2016 site.
  2. installed wget using homebrew
  3. installed the disable all forms module (http://drupal.org/project/disable_all_forms)
  4. ran wget:
    wget -q --mirror -p --adjust-extension -e robots=off --base=./ -k -P ./ http://example.com
  5. Did some basic search / replace methods to get rid of the hard coded URL for the site

from drupal-govcon-2017.

mikemadison13 avatar mikemadison13 commented on July 17, 2024

current activity is trying to get the .htaccess redirects working per @aweingarten's request.

from drupal-govcon-2017.

timwood avatar timwood commented on July 17, 2024

I've just committed PR #77 for the 2015 site. The changes to .htaccess will likely conflict with yours, but we should be able to resolve that relatively easily. I included these lines as well to catch the path with and without the / (slash) since in my environment it wasn't loading index.html.

  RewriteCond %{REQUEST_URI} ^/drupal-govcon-2015 [NC]
  RewriteRule ^drupal-govcon-2015/?$  /drupal-govcon-2015/index.html [NC,R,L]
  # Redirect GovCon 2015 path with or without / to index.html

from drupal-govcon-2017.

mikemadison13 avatar mikemadison13 commented on July 17, 2024

Update: Due to issues with the original WGet method, I've gone with the same HTTrack method that @timwood used. However, that method failed against the public stage/prod sites, so I had to rebuild my local environment.

from drupal-govcon-2017.

aweingarten avatar aweingarten commented on July 17, 2024

#60

from drupal-govcon-2017.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.