mirror of
https://github.com/ArthurDanjou/artdanj-shortener.git
synced 2026-01-14 13:54:03 +01:00
Updating project
This commit is contained in:
10
Dockerfile
10
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
|
||||
|
||||
|
||||
@@ -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
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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 <arthurdanjou@outlook.fr> (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",
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user