minor enhancements

This commit is contained in:
Rohan Sircar 2021-04-23 21:10:02 +05:30
parent 73e9904173
commit bbdd9b9abd
6 changed files with 3 additions and 8 deletions

2
.env
View File

@ -1,3 +1,3 @@
DATABASE_URL=test.db DATABASE_URL=app.db
BIND_ADDRESS=127.0.0.1:7800 BIND_ADDRESS=127.0.0.1:7800
HASH_COST=8 HASH_COST=8

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
/target /target
.idea .idea
.vscode .vscode
/test.db /app_db.db

View File

@ -70,8 +70,3 @@ features = ['serde']
# version = '0.9.0' # version = '0.9.0'
# default-features = false # default-features = false
# features = ['config'] # features = ['config']
[build.env]
passthrough = [
"RUST_BACKTRACE",
]

View File

@ -35,7 +35,7 @@ RUN groupadd $APP_USER \
COPY ./.env ${APP}/.env COPY ./.env ${APP}/.env
COPY ./migrations ${APP}/migrations COPY ./migrations ${APP}/migrations
COPY ./static ${APP}/static COPY ./static ${APP}/static
COPY ./db/test.db ${APP}/test.db COPY ./db/empty.db ${APP}/app.db
COPY --from=builder /actix-demo/target/release/actix-demo ${APP}/actix-demo COPY --from=builder /actix-demo/target/release/actix-demo ${APP}/actix-demo
RUN chown -R $APP_USER:$APP_USER ${APP} RUN chown -R $APP_USER:$APP_USER ${APP}

BIN
app.db Executable file

Binary file not shown.