Add volume support to allow loader to pass data to server.
This commit is contained in:
@@ -32,6 +32,8 @@ COPY --from=frontend /frontend/dist /srv/cprush-stats/frontend
|
||||
COPY --from=backend /backend/dist /srv/cprush-stats
|
||||
COPY --from=backend /backend/package.json /srv/cprush-stats/package.json
|
||||
|
||||
VOLUME /srv/cprush-stats/data
|
||||
|
||||
EXPOSE 3001
|
||||
ENV NODE_ENV=production
|
||||
ENV MEMCACHE_ADDR="localhost:11211"
|
||||
|
||||
@@ -25,7 +25,7 @@ export const roleNames: RoleName[] = [
|
||||
'Rocker'
|
||||
]
|
||||
|
||||
const databasePath = './testdb.db'
|
||||
const databasePath = './data/testdb.db'
|
||||
|
||||
export const database = new Sequelize({
|
||||
dialect: 'sqlite',
|
||||
|
||||
Reference in New Issue
Block a user