Updating project

This commit is contained in:
2022-07-03 19:32:57 +02:00
parent fd0feec8cd
commit a406eb0b9e
4 changed files with 7 additions and 15 deletions

View File

@@ -1,9 +1,9 @@
FROM node:15.8.0-alpine3.10 FROM node:16-alpine3.11
RUN mkdir -p /usr/src/linkyjs RUN mkdir -p /usr/src/shortener
WORKDIR /usr/src/linkyjs WORKDIR /usr/src/shortener
COPY . /usr/src/linkyjs COPY . /usr/src/shortener
RUN apk update && \ RUN apk update && \
apk add git apk add git
@@ -14,7 +14,7 @@ RUN yarn build
RUN cp .env build RUN cp .env build
WORKDIR /usr/src/linkyjs/build WORKDIR /usr/src/shortener/build
RUN yarn install --production RUN yarn install --production

View File

@@ -40,7 +40,7 @@ const redisConfig: RedisConfig = {
port: Env.get('REDIS_PORT'), port: Env.get('REDIS_PORT'),
password: Env.get('REDIS_PASSWORD', ''), password: Env.get('REDIS_PASSWORD', ''),
db: Env.get('REDIS_DB', 1), db: Env.get('REDIS_DB', 1),
keyPrefix: 'linkyjs:', keyPrefix: 'shortener:',
healthCheck: true healthCheck: true
}, },
}, },

View File

@@ -3,16 +3,8 @@
"version": "2.0.0", "version": "2.0.0",
"description": "URL Shortener for Developers 💻", "description": "URL Shortener for Developers 💻",
"main": "start/kernel.ts", "main": "start/kernel.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/linkyjs/core.git"
},
"author": "Arthur Danjou <arthurdanjou@outlook.fr> (https://arthurdanjou.fr)", "author": "Arthur Danjou <arthurdanjou@outlook.fr> (https://arthurdanjou.fr)",
"license": "MIT", "license": "MIT",
"bugs": {
"url": "https://github.com/linkyjs/core/issues"
},
"homepage": "https://github.com/linkyjs/core#readme",
"scripts": { "scripts": {
"build": "node ace build --production", "build": "node ace build --production",
"start": "node server.js", "start": "node server.js",

View File

@@ -17,7 +17,7 @@ Route.get('/', async ({ response }: HttpContextContract) => {
}) })
Route.get('/source', 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) => { Route.get('health', async ({ response }: HttpContextContract) => {