diff --git a/.env b/.env index daf7372..4cc8d31 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ -DATABASE_URL=app.db +DATABASE_URL=data/app.db BIND_ADDRESS=127.0.0.1:7800 HASH_COST=8 diff --git a/.gitignore b/.gitignore index b90f924..2af6060 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /target .idea .vscode -/app_db.db \ No newline at end of file +app.db +/data \ No newline at end of file diff --git a/app.db b/app.db deleted file mode 100755 index c972fae..0000000 Binary files a/app.db and /dev/null differ diff --git a/build.Dockerfile b/build.Dockerfile index 88703fa..aa2c40a 100644 --- a/build.Dockerfile +++ b/build.Dockerfile @@ -33,7 +33,7 @@ RUN groupadd $APP_USER \ COPY ./.env ${APP}/.env COPY ./migrations ${APP}/migrations COPY ./static ${APP}/static -COPY ./db/empty.db ${APP}/app.db +COPY ./db/empty.db ${APP}/data/app.db COPY --from=builder /actix-demo/target/release/actix-demo ${APP}/actix-demo RUN chown -R $APP_USER:$APP_USER ${APP} diff --git a/ci.Dockerfile b/ci.Dockerfile index 4bf0138..8602d02 100644 --- a/ci.Dockerfile +++ b/ci.Dockerfile @@ -17,7 +17,7 @@ RUN groupadd $APP_USER \ COPY ./.env ${APP}/.env COPY ./migrations ${APP}/migrations COPY ./static ${APP}/static -COPY ./db/empty.db ${APP}/app.db +COPY ./db/empty.db ${APP}/data/app.db COPY ./target/release/actix-demo ${APP}/actix-demo RUN chown -R $APP_USER:$APP_USER ${APP}