This is the source code of SaoYe (骚也) website.
You need MongoDB and NodeJS to run SaoYe in the local.
- In sub-directory
saoye, runnpm install. - Within the directory, create file
.env. Type in the following content in.envfile:
NODE_ENV="development"
COOKIE_SECRET=<COOKIE_SECRET> // Just some random string is fine.- Ensure your mongo service is run. Then run
npm start. The website should be able to access fromlocalhost:3000.
You have to have the proper permission on heroku dyno.
- In you repo,
git remote add heroku <path-to-git-repository>. git fetch heroku.- When you need to deploy, (in root repository) use
git push herokugit subtree split --prefix saoye master:master --force.