diff --git a/Dockerfile b/Dockerfile index 1470410..9bc28c5 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM node:15.8.0-alpine3.10 +FROM node:16-alpine3.11 -RUN mkdir -p /usr/src/linkyjs -WORKDIR /usr/src/linkyjs +RUN mkdir -p /usr/src/shortener +WORKDIR /usr/src/shortener -COPY . /usr/src/linkyjs +COPY . /usr/src/shortener RUN apk update && \ apk add git @@ -14,7 +14,7 @@ RUN yarn build RUN cp .env build -WORKDIR /usr/src/linkyjs/build +WORKDIR /usr/src/shortener/build RUN yarn install --production diff --git a/config/redis.ts b/config/redis.ts index c51c984..19b4c0c 100755 --- a/config/redis.ts +++ b/config/redis.ts @@ -40,7 +40,7 @@ const redisConfig: RedisConfig = { port: Env.get('REDIS_PORT'), password: Env.get('REDIS_PASSWORD', ''), db: Env.get('REDIS_DB', 1), - keyPrefix: 'linkyjs:', + keyPrefix: 'shortener:', healthCheck: true }, }, diff --git a/package.json b/package.json index b2a6aff..f3e9882 100755 --- a/package.json +++ b/package.json @@ -3,16 +3,8 @@ "version": "2.0.0", "description": "URL Shortener for Developers 💻", "main": "start/kernel.ts", - "repository": { - "type": "git", - "url": "git+https://github.com/linkyjs/core.git" - }, "author": "Arthur Danjou (https://arthurdanjou.fr)", "license": "MIT", - "bugs": { - "url": "https://github.com/linkyjs/core/issues" - }, - "homepage": "https://github.com/linkyjs/core#readme", "scripts": { "build": "node ace build --production", "start": "node server.js", diff --git a/start/routes.ts b/start/routes.ts index d2f188e..ed68bc0 100755 --- a/start/routes.ts +++ b/start/routes.ts @@ -17,7 +17,7 @@ Route.get('/', async ({ response }: HttpContextContract) => { }) Route.get('/source', async ({ response }: HttpContextContract) => { - return response.redirect('https://github.com/linkyjs/core') + return response.redirect('https://github.com/arthurdanjou/artdanj-shortener') }) Route.get('health', async ({ response }: HttpContextContract) => {