It would be cool if you could visit an admin screen and set a cookie that would tell Drupal to start routing traffic from the static export directory. Then you'd need some Javascript to unset the cookie, or something like that. This would make the UI functional without the command line.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

samuel.mortenson created an issue. See original summary.

samuel.mortenson’s picture

Status: Active » Needs review
FileSize
10.72 KB

This is sweeeeet.

Status: Needs review » Needs work

The last submitted patch, 2: 3029260-2.patch, failed testing. View results

samuel.mortenson’s picture

Status: Needs work » Needs review
FileSize
10.72 KB
1.16 KB

Weird. I'm not sure I agree that methods can't have exit methods but 🤷‍♀️

samuel.mortenson’s picture

Here's a Drush command for CLI fans.

samuel.mortenson’s picture

FileSize
16.86 KB
1.88 KB

Gotta have tests!

  • samuel.mortenson authored 7171577 on 8.x-1.x
    Issue #3029260 by samuel.mortenson: Allow users to preview static site...
samuel.mortenson’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.