Compare commits

...

2 Commits
0.1.2 ... 0.1.3

Author SHA1 Message Date
Nicolai Ort 86985ef735 🚀RELEASE 0.1.3
continuous-integration/drone/push Build is passing Details
2021-08-14 13:23:38 +02:00
Nicolai Ort fef7daaf96
Weired knex env fix 2021-08-14 13:23:11 +02:00
4 changed files with 13 additions and 10 deletions

View File

@ -2,9 +2,16 @@
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
#### [0.1.3](https://git.odit.services/kauft.es/linkylinky/compare/0.1.2...0.1.3)
- Weired knex env fix [`fef7daa`](https://git.odit.services/kauft.es/linkylinky/commit/fef7daaf961e9112aa00f2ad22c3b0518ad258a7)
#### [0.1.2](https://git.odit.services/kauft.es/linkylinky/compare/0.1.1...0.1.2)
> 14 August 2021
- API Endpoint to get all short urls [`fa01864`](https://git.odit.services/kauft.es/linkylinky/commit/fa01864d0de7921e741d63c3f5795161279ea478)
- 🚀RELEASE 0.1.2 [`b14fa05`](https://git.odit.services/kauft.es/linkylinky/commit/b14fa05adc1ef8e34fd73bf5f495505df7d44b33)
- Changed the way that the migration get's triggered [`8fa489f`](https://git.odit.services/kauft.es/linkylinky/commit/8fa489f2bcd9d1ad63ab4581b7f3b27eee3d9038)
- Get all api endpoints [`91b25c2`](https://git.odit.services/kauft.es/linkylinky/commit/91b25c22ca035aec5cc2fdc80ca4fbb56a2f8b65)
- Added optional db volume to docker-compose [`7c71e94`](https://git.odit.services/kauft.es/linkylinky/commit/7c71e943041d8e3ac9dcf95cad27f2f0bc0b024c)

View File

@ -4,7 +4,7 @@ COPY package.json .
COPY yarn.lock .
RUN yarn --production --frozen-lockfile
COPY migrations ./migrations
COPY src/server.js ./
COPY src ./src
COPY knexfile.js ./
RUN mkdir db
#
@ -14,4 +14,4 @@ WORKDIR /app
COPY --from=0 /app /app
ENV NODE_ENV production
EXPOSE 3000
ENTRYPOINT ["/bin/sh", "-c", "yarn migrate && node ./server.js"]
ENTRYPOINT ["/bin/sh", "-c", "yarn migrate && node ./src/server.js"]

View File

@ -1,6 +1,6 @@
{
"name": "@odit/shortener-backend",
"version": "0.1.2",
"version": "0.1.3",
"main": "index.js",
"license": "MIT",
"private": false,

View File

@ -15,13 +15,9 @@ let config = {
return `http://${config.domain}`;
}
}
const knex = require('knex')({
client: 'sqlite3',
connection: {
filename: "./dev.sqlite3"
}
});
const environment = process.env.NODE_ENV || 'development';
const knexConfiguration = require('../knexfile')[environment];
const knex = require('knex')(knexConfiguration);
const authenticate = { realm: 'Short' }
fastify.register(require('fastify-basic-auth'), { validate, authenticate });