Skip to content

Commit

Permalink
chore: remove heroku artifacts (#1865)
Browse files Browse the repository at this point in the history
* chore: remove heroku artifacts

* chore: remove additional heroku files

---------

Co-authored-by: Julian Skinner <dev+github-bot@kajabi.com>
  • Loading branch information
ju-Skinner and kajabi-bot authored Feb 27, 2024
1 parent 82554f6 commit bfab68f
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 111 deletions.
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ When running the `bridge`, you *must* have `yarn start` running in this reposito

Within your Kajabi Products repository, run the project as you usually would and in tandem also run Kajabi-Products' `webpack-dev-server`. For Kajabi Products to watch changes within your local Sage repo `webpack-dev-server` needs to be running.

```bash
$ heroku local
```

```bash
$ bin/webpack-dev-server
```
Expand Down Expand Up @@ -184,10 +180,6 @@ Start the documentation site from the `docs/` folder. Will be located at http://

Run `bundle install` on the `docs/` folder.

### `docs:deploy`

This command is to deploy the Documentation Site application to Heroku. This is an automated process through Continuous Deployment.

### `docs:initialize`

Initialize the docs site. Install all gems/packages
Expand Down Expand Up @@ -216,10 +208,6 @@ Establish a local link between the Sage Rails gem and the internal Sage Packages

Run the SassDoc server from the `@kajabi/sage-assets` package.

### `sassdocs:deploy`

This command is for deploying the SassDocs application to Heroku. This is an automated process through Continuous Deployment.

### `setup` :star:

Run the initial setup scripts
Expand All @@ -240,10 +228,6 @@ Continually compiles packages on changes and starts the applications.

Launch "storybook" from the `@kajabi/sage-react` package

### `storybook:deploy`

This command is for deploying the Storybook application to Heroku. This is an automated process through Continuous Integration.

### `test`

Run all `test:*` scripts
Expand Down
12 changes: 0 additions & 12 deletions app.json

This file was deleted.

29 changes: 0 additions & 29 deletions bin/compile

This file was deleted.

7 changes: 0 additions & 7 deletions bin/detect

This file was deleted.

5 changes: 0 additions & 5 deletions bin/release

This file was deleted.

2 changes: 1 addition & 1 deletion docs/catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
- javascript
- documentation
links:
- url: https://sage-lib-documentation.herokuapp.com/pages/index
- url: https://sage-lib-documentation.production.kajabi.farm/pages/index
title: Public Documentation Site
icon: dashboard
spec:
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"commit": "yarn cz",
"docs": "cd docs && yarn start",
"docs:bundle": "bin/bundle.sh",
"docs:deploy": "git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_DOCS_APP_NAME.git `git subtree split --prefix docs main`:master --force",
"docs:initialize": "yarn docs:bundle && cd docs && yarn install",
"external": "bin/local-link-frontend.sh false",
"gem:bump:type": "export SAGE_ORIGINAL_VER=$(bin/gem-version.sh); node bin/js/gem-bump-type.js",
Expand All @@ -55,12 +54,10 @@
"lint:react": "cd packages/sage-react && yarn lint",
"local": "bin/local-link-frontend.sh true",
"sassdocs": "cd packages/sage-assets && yarn run start",
"sassdocs:deploy": "git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_SASSDOCS_APP_NAME.git `git subtree split --prefix packages/sage-assets main`:master --force",
"setup": "bin/setup.sh",
"setup:init": "yarn install && yarn docs:initialize",
"start": "yarn npm-run-all --parallel build:sd watch docs storybook sassdocs",
"storybook": "cd packages/sage-react && yarn storybook",
"storybook:deploy": "git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_STORYBOOK_APP_NAME.git `git subtree split --prefix packages/sage-react main`:master --force",
"test": "yarn npm-run-all test:prod:*",
"test:dev": "yarn npm-run-all test:dev:*",
"test:dev:react": "cd packages/sage-react && yarn test:dev",
Expand Down
1 change: 0 additions & 1 deletion packages/sage-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"scripts": {
"build": "build-storybook -o build && webpack --config webpack/webpack.prod.js",
"build:watch": "build-storybook -o build && webpack --config webpack/webpack.prod.js --watch",
"heroku-prebuild": "npm install react@16.13.1 react-dom@16.13.1 react-router-dom@5.1.0 --no-package-lock",
"lint": "yarn run eslint \"lib/**/*.{js,jsx}\"",
"storybook": "start-storybook -p 4100 --ci",
"preversion": "yarn install && yarn run build",
Expand Down
41 changes: 4 additions & 37 deletions readme/CICD.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
# Continuous Integration, Deployment, Versioning, and Releases

Continuous Integration is being handled by GitHub Actions with deployments going to Heroku. Lerna is integrated into the Pipeline to allow for automatic Versioning, Changelogs, and Releases.
Continuous Integration is being handled by GitHub Actions with deployments going to EKS. Lerna is integrated into the Pipeline to allow for automatic Versioning, Changelogs, and Releases.

## Jobs

### lint-test-build

The `lint-build-test` job is reponsible for verifying the integrity of the suite. It ensures all linting, testing, and build procedures pass before allowing a merge. This job is run as part of every PR and push to `main`.

*NOTE: Do not ever push to `main` directly*

[Review Apps](https://devcenter.heroku.com/articles/github-integration-review-apps) have been integrated on every PR. They will only show the main Rails Documentation Site.

### release-and-deploy

The `release-and-deploy` step only triggers on `main` pushes that are not initiated by the CI system. This includes merges into `main` from a PR.
Expand All @@ -30,41 +26,12 @@ There are 3 applications as part of the Sage suite. Each of these elements have

### Rails "Docs" Site

Deployed to: https://sage-lib-documentation.herokuapp.com/

The `docs:deploy` script at the root of the monorepo is designed to push a subtree of the `docs/` folder to the Heroku master.

#### Heroku Env Requirements

> Note: Must be a valid GitHub PAT
```text
//npm.pkg.github.com/:_authToken=<your_token>
@kajabi:registry=https://npm.pkg.github.com/
```

#### Heroku Buildpack Requirements

- https://github.com/debitoor/heroku-buildpack-npmrc.git
- heroku/ruby
- heroku/nodejs
Deployed to: https://sage-lib-documentation.production.kajabi.farm/

### React Storybook Site

Deployed to: https://sage-lib-storybook.herokuapp.com/

The `storybook:deploy` script at the root of the monorepo is designed to push a subtree of the `packages/sage-react` folder to the Heroku master.

#### Heroku Buildpack Requirements

- heroku/nodejs
Deployed to: https://sage-lib-storybook.production.kajabi.farm/

### SASSDocs Site

Deployed to: https://sage-lib-sassdocs.herokuapp.com/

The `sassdoc:deploy` script at the root of the monorepo is designed to push a subtree of the `packages/sage-assets` folder to the Heroku master.

#### Heroku Buildpack Requirements

- heroku/nodejs
Deployed to: https://sage-lib-sassdocs.production.kajabi.farm/

0 comments on commit bfab68f

Please sign in to comment.