Running site locally
- Clone repository
- Install dependencies via
npm i
command - Create
.env
file from.env.example
file and make sure it has correct values - Start development server via
npm run dev
command
Make build
- Start build via
npm run build
command - Start server via
npm run start
command
Commit strategy
- You should create new branches out of dev branch
- You should make a pull-request to dev branch
- You should check your open pull-requests and rebase them against dev in case any conflicts
- You should use master branch only for deployment
Deploy
- Deploy
dev
to staging http://167.71.71.176:8000/ (filebash deploy-staging
) - Deploy
master
to production https://keenethics.com/ (filebash deploy
)
Note for deploy:
If you deploy to production and see that your changes didn't implement, but in localhost all works. You can try command killall node
on prod.
Test it
- Start development server via
npm run dev
command - Start tests via
npm run test
Note for macOS developers
- Node.js version has to be >= 9
- After installing dependencies you have to run
npm rebuild node-sass