- Download and install NodeJS
- Download and install MAMP / MAMP Pro
- Download codame-website repository and
npm install
- Install gulp globally by running
npm install gulp -g
- Run
gulp
to initialize the site in the/dist
folder.
- Configure MAMP to serve the dist folder in the codame-website folder.
- Replace
config/secrets-example.php
with the real secrets file, provided by an existing Codame developer. - In secrets.php replace the local URL with the actual URL of your local site
--
Alternatively the site can be run directly with PHP builtin server:
- Install php on your system (ex:
brew install php
on mac) - cd dist
php -S localhost:8000 -n
(-n tells php to not require a php.ini file to work).
Recommend using node version under 12 to avoid gulp version conflict.
If you do want to use node version 12 and run into issues, add a npm-shrinkwrap.json
file to lock the versions of npm dependencies.
See here for more details
- All pushes to
master
automatically get deployed to http://dev.codame.com. - Production pushes are manually triggered when the build on dev looks good.