Skip to content

Commit 5d4f023

Browse files
author
Sergey Burykin
committed
fixed localhost address in readme
fixed key in redis user settings added arm local docker build
1 parent a3d6c25 commit 5d4f023

File tree

6 files changed

+20
-6
lines changed

6 files changed

+20
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ docker-compose up
6060

6161
Note: `latest` image will be downloaded and started.
6262

63-
Visit `http://localhost:8000` after the build is complete.
63+
Visit `http://localhost:8000/configurator` after the build is complete.
6464

6565
To learn more check out [Jitsu deployment documentation](https://jitsu.com/docs/deployment/):
6666

configurator/backend/storages/configurations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const (
8686
lastUpdatedField = "_lastUpdated"
8787

8888
telemetryCollection = "telemetry"
89-
telemetryGlobalID = "global"
89+
telemetryGlobalID = "global_configuration"
9090

9191
LastUpdatedLayout = "2006-01-02T15:04:05.000Z"
9292
)

configurator/frontend/src/lib/components/UserSettings/UserSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const UserSettings: React.FC<Props> = () => {
9292
}
9393
}
9494
const getTelemetryStatus = async() => {
95-
const response = await services.backendApiClient.get('/configurations/telemetry?id=global');
95+
const response = await services.backendApiClient.get('/configurations/telemetry?id=global_configuration');
9696
setIsTelemetryEnabled(!response['disabled']?.['usage']);
9797
}
9898

configurator/frontend/src/lib/services/backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export class BackendUserService implements UserService {
258258
}
259259

260260
async changeTelemetrySettings(newSettings: TelemetrySettings): Promise<void> {
261-
await this.backendApi.post('/configurations/telemetry?id=global', { disabled: { usage: !newSettings.isTelemetryEnabled} });
261+
await this.backendApi.post('/configurations/telemetry?id=global_configuration', { disabled: { usage: !newSettings.isTelemetryEnabled} });
262262
}
263263

264264
//isn't supported (without google authorization)

local-build-configurator.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
cd configurator/backend && rm -rf build && make all GOBUILD_PREFIX='GOOS=linux GOARCH=amd64' &&\
1+
GO_BUILD_PARAMS='GOOS=linux GOARCH=amd64'
2+
3+
if [ "$1" == 'arm' ]
4+
then
5+
GO_BUILD_PARAMS='GOOS=linux GOARCH=arm64'
6+
fi
7+
8+
cd configurator/backend && rm -rf build && make all GOBUILD_PREFIX="$GO_BUILD_PARAMS" &&\
29
cd ../frontend/ && rm -rf build && yarn clean && yarn install && CI=false NODE_ENV=production ANALYTICS_KEYS='{"eventnative": "js.gpon6lmpwquappfl07tuq.ka5sxhsm08cmblny72tevi"}' yarn build &&\
310
cd ../../ &&\
411
docker build -t jitsucom/configurator -f configurator-local.Dockerfile --build-arg dhid=jitsucom .

local-build-server.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
GO_BUILD_PARAMS='GOOS=linux GOARCH=amd64'
2+
3+
if [ "$1" == 'arm' ]
4+
then
5+
GO_BUILD_PARAMS='GOOS=linux GOARCH=arm64'
6+
fi
7+
18
cd javascript-sdk/ && yarn clean && yarn install && yarn build &&\
2-
cd ../server && make all GOBUILD_PREFIX='GOOS=linux GOARCH=amd64' &&\
9+
cd ../server && make all GOBUILD_PREFIX="$GO_BUILD_PARAMS" &&\
310
cd ../ && docker build -t jitsucom/server -f server-local.Dockerfile --build-arg dhid=jitsucom .

0 commit comments

Comments
 (0)