Skip to content

Instantly share code, notes, and snippets.

@amergin
Last active June 25, 2016 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amergin/e62d4940e26a6931847ca0990591a336 to your computer and use it in GitHub Desktop.
Save amergin/e62d4940e26a6931847ca0990591a336 to your computer and use it in GitHub Desktop.
mkdir snapshot-env
virtualenv snapshot-env/
cd snapshot-env/
source bin/activate
pip install nodeenv
nodeenv --node=4.2.6 --prebuilt node/
deactivate
git clone https://github.com/prerender/prerender.git
source node/bin/activate
cd prerender
wget https://gist.githubusercontent.com/amergin/37385f63db7b7a5a79257a7ed8ae3d12/raw/cb7fe030fd7a6c1ff8757b0e1bb5c66ed78cd5cc/demoserver.js -O demoserver.js
npm install
wget https://gist.githubusercontent.com/amergin/b652b4ac0fe41b85cc0b41488a814fd6/raw/a0224a2a4e0135d7d11c108bdccd1e745ec72b76/.env -O .env
source .env
node demoserver.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment