ref: Rename .env file to sample, stop tracking .env file
This commit is contained in:
@@ -47,9 +47,11 @@ RUN apk -U upgrade \
|
|||||||
&& apk del vips-dependencies --purge
|
&& apk del vips-dependencies --purge
|
||||||
|
|
||||||
COPY docker-start.sh start.sh
|
COPY docker-start.sh start.sh
|
||||||
RUN chmod +x start.sh
|
|
||||||
COPY server .
|
COPY server .
|
||||||
|
|
||||||
|
RUN chmod +x start.sh \
|
||||||
|
&& cp .env.sample .env
|
||||||
|
|
||||||
COPY --from=client-builder /app/build public
|
COPY --from=client-builder /app/build public
|
||||||
COPY --from=client-builder /app/build/index.html views
|
COPY --from=client-builder /app/build/index.html views
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ Either use a local database or start the provided development database:
|
|||||||
docker-compose -f docker-compose-dev.yml up
|
docker-compose -f docker-compose-dev.yml up
|
||||||
```
|
```
|
||||||
|
|
||||||
Edit `DATABASE_URL` in `.env` file if needed, then initialize the database:
|
Create `server/.env` based on `server/.env.sample` and edit `DATABASE_URL` if needed, then initialize the database:
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run server:db:init
|
npm run server:db:init
|
||||||
|
|||||||
1
server/.gitignore
vendored
1
server/.gitignore
vendored
@@ -44,6 +44,7 @@
|
|||||||
#
|
#
|
||||||
################################################
|
################################################
|
||||||
|
|
||||||
|
.env
|
||||||
config/local.js
|
config/local.js
|
||||||
|
|
||||||
################################################
|
################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user