Stage file proxy

Submitted by barnettech on Tue, 08/13/2019 - 12:37

https://www.drupal.org/project/stage_file_proxy

useful:

Stage File Proxy is a general solution for getting production files on a development server on demand. It saves you time and disk space by sending requests to your development environment's files directory to the production environment and making a copy of the production file in your development site. You should not need to enable this module in production.

ngrok

Submitted by barnettech on Tue, 07/23/2019 - 10:06

This successfully served up my local acquia dev site on my phone

ngrok http -host-header=drupal-8.dd 8083

Passing variables in lua

Submitted by barnettech on Sat, 07/13/2019 - 22:11

Here is an example of passing variables in lua:


gStateMachine:change('begin-game', {
            level = self.level,
            score = self.score,
            matchispossible = false
        })

then on the receiving end in the BeginGameState.lua

function BeginGameState:enter(def)
    -- grab level # from the def we're passed
    self.level = def.level
    self.score = def.score