This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from Fotogjengen/update@angular-routing
Update@angular routing
- Loading branch information
Showing
11 changed files
with
113 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,4 @@ | ||
# Stage 1 | ||
FROM node:9-alpine as build-deps | ||
RUN npm i @angular/[email protected] [email protected] -g --unsafe-perm | ||
|
||
WORKDIR /src | ||
|
||
# Copy files defining dependency first | ||
COPY src/angular_frontend/package.json . | ||
COPY src/angular_frontend/package-lock.json . | ||
RUN npm i && npm rebuild node-sass | ||
|
||
# Then copy over the rest of directory and build | ||
COPY src/angular_frontend/ . | ||
RUN ng build | ||
|
||
# Stage 2 | ||
FROM nginx:1.15.0 | ||
|
||
COPY nginx/nginx.conf /etc/nginx/nginx.conf | ||
COPY nginx/default.conf /etc/nginx/conf.d/default.conf | ||
COPY --from=build-deps /src/dist /static/angular/dist |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/usr/bin/env bash | ||
dropdb --if-exists 'old_fg' | ||
createdb -U postgres -T template0 old_fg | ||
psql -U postgres -d old_fg -f /data/dump.sql |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.