Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.29 KB

developing.md

File metadata and controls

35 lines (24 loc) · 1.29 KB

Developing on codame.com

Set up workspace

Installations

  1. Download and install NodeJS
  2. Download and install MAMP / MAMP Pro
  3. Download codame-website repository and npm install
  4. Install gulp globally by running npm install gulp -g
  5. Run gulp to initialize the site in the /dist folder.

Set up

  1. Configure MAMP to serve the dist folder in the codame-website folder.
  2. Replace config/secrets-example.php with the real secrets file, provided by an existing Codame developer.
  3. 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:

  1. Install php on your system (ex: brew install php on mac)
  2. cd dist
  3. php -S localhost:8000 -n (-n tells php to not require a php.ini file to work).

Notes

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

Deployment

  • All pushes to master automatically get deployed to http://dev.codame.com.
  • Production pushes are manually triggered when the build on dev looks good.