@@ -126,48 +126,4 @@ $ npm run lint
126
126
$ npm run lint:fix
127
127
```
128
128
129
- ## CI/CD (For auto-deployment from Gitlab to Heroku)
130
-
131
- Define the following environment variables in the GitLab CI/CD section:
132
-
133
- - ` HEROKU_APP_NAME ` : Name of the Heroku app to which deployment is to be made
134
- - ` HEROKU_API_KEY ` : API Key associated with the account owning the Heroku app
135
-
136
- All changes to ` master ` branch will be pushed to the Heroku app automatically.
137
-
138
- ## Heroku Configuration
139
-
140
- Install Heroku CLI. Instructions [ here] ( https://devcenter.heroku.com/articles/heroku-cli ) .
141
-
142
- Then, set the environment variables using the following commands, changing the values as necessary:
143
-
144
- ``` bash
145
- # Set the Kafka client certificate and client key
146
- # Replace ./config/kafka_client.cer and ./config/kafka_client.key with the path to the certificate and key
147
- $ heroku config:set -a < app_name> \
148
- KAFKA_CLIENT_CERT=" $( cat ./config/kafka_client.cer) " \
149
- KAFKA_CLIENT_CERT_KEY=" $( cat ./config/kafka_client.key) "
150
-
151
- # Set the other environment variables
152
- $ heroku config:set -a < app_name> \
153
- TOPCODER_AUTH0_PROXY_SERVER_URL=" <value>" \
154
- TOPCODER_AUTH0_URL=" <value>" \
155
- TOPCODER_API_URL=" <value>" \
156
- TOPCODER_ROOT_URL=" <value>" \
157
- KAFKA_URL=" <value>" \
158
- ROCKETCHAT_PROTOCOL=" <value>" \
159
- ROCKETCHAT_HOST=" <value>" \
160
- ROCKETCHAT_PORT=" <value>" \
161
- ROCKETCHAT_USERNAME=" <value>" \
162
- ROCKETCHAT_PASSWORD=" <value>" \
163
- VANILLA_API_URL=" <value>" \
164
- VANILLA_ADMIN_ACCESS_TOKEN=" <value>"
165
- ```
166
-
167
- Use the following command to turn on the worker dyno and disable the web dyno:
168
-
169
- ``` bash
170
- $ heroku ps:scale -a < app_name> worker=1 web=0
171
- ```
172
-
173
- The free dyno is generally put to sleep after 30 seconds of inactivity, so it's recommended to use a paid dyno.
129
+ Commit to force redeploy
0 commit comments