Uses react, react-router, redux and Phenomic under the hood.
This site is 100% serverless! Wooooooo!
1. Clone down the site Clone down the site:
git clone [email protected]:serverless/site.git
2. Install site dependencies
npm install
3. Run site on your local computer
npm start
Open your browser to http://localhost:3333
When you start the site with npm start
it will start watching for file changes and they will be automatically refreshed in the site on http://localhost:3333
To make edits to blog posts, edit the files in ./serverless-blog/posts
(this directory is added on npm i
)
To make edits to framework docs, edit the files in ./serverless/docs
(this directory is added on npm i
)
To make edits to other pages, edit the markdown in ./content
Some pages have custom designs/layouts and the html might need to be altered. That content can be found in ./src/layouts
or ./src/pages
1. Test the build command locally
$ npm run buildprod
2. If build command succeeds, push up your changes to a new branch
We are using netlify to distribute the site.
When pushing up to a new branch, netlify will automatically publish that change to a unique subdomain, like: https://[LowerCaseBranchName]--serverless.netlify.com
For example the branch updateDocsSetup
published to https://updatedocssetup--serverless.netlify.com
Successful deploys are published to the notifications slack channel
Note: The master
branch is the live site. Never push directly to the master branch!
3. Review your live site changes
If everything looks good on your unique netlify subdomain, you can go ahead and merge your branch to master on github.
Merging branches into master will trigger a site rebuild and serverless.com
will be updated
"transpile": "babel --ignore tests --copy-files src --out-dir ../site/node_modules/phenomic/lib",