WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

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

Using ngrok to provide an ip address to your local webserver

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