5902e867b6 | ||
---|---|---|
.github | ||
.husky | ||
hooks | ||
public | ||
src | ||
utils | ||
.dockerignore | ||
.env | ||
.eslintrc.json | ||
.gitignore | ||
.prettierrc | ||
Dockerfile | ||
Jenkinsfile | ||
README.md | ||
mdx-components.tsx | ||
next.config.js | ||
package.json | ||
tsconfig.json | ||
yarn.lock |
README.md
IFT
Test pages
next-mdx-remote
test page: '/'@next/mdx
test page: '/test'
How to Run Locally
- Clone this repository
$ git clone https://github.com/acid-info/ift.git
- Install the dependencies:
$ yarn install
- Set .env
- Get Github Personal Access Token at https://github.com/settings/tokens/new?scopes=repo
NEXT_PUBLIC_SITE_URL=
NEXT_GITHUB_PERSONAL_ACCESS_TOKEN=
- Start the development server:
$ yarn dev
- Visit
http://localhost:3000
in your browser
How to Run a Static Build (Production Build)
- Generate static files for production:
$ yarn build
The static files will be created in the build
directory.
- Serve the static build:
$ yarn start
- Visit
http://localhost:3000
in your browser.
CI/CD
- The
master
branch is automatically deployed to the production server (e.g., logos.co) through CI - The
develop
branch is automatically deployed to the staging server (e.g., dev.logos.co) through CI
Change Process
-
Create a new working branch from
develop
:git checkout develop; git checkout -b my-changes
. -
Make your changes, push them to the
origin
, and open a Pull Request against thedevelop
branch. -
After approval, merge the pull request, and verify the changes on the staging server (https://dev.logos.co/).
-
When ready to promote changes to the live website, create a pull request against the "master" branch, based on the "develop" branch.