forked from ohmyform/ohmyform
-
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.
add heroku deploy with data from ohmyform#83
- Loading branch information
Showing
6 changed files
with
42 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ LABEL maintainer="OhMyForm <[email protected]>" | |
WORKDIR /usr/src/app | ||
|
||
COPY api/ . | ||
COPY --from=builder /usr/src/app/out /usr/src/app/public | ||
|
||
RUN yarn install --frozen-lockfile | ||
RUN yarn build | ||
|
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 +1 @@ | ||
web: node server.js | ||
web: node api/dist/main |
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
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
File renamed without changes
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
cd ui/ | ||
|
||
echo "Install UI" | ||
yarn install --frozen-lockfile | ||
|
||
echo "Build and Export UI" | ||
yarn export | ||
|
||
cd ../api | ||
|
||
echo "Install API" | ||
yarn install --frozen-lockfile | ||
|
||
echo "Copy Exported UI to API" | ||
cp -r ui/out public | ||
|
||
yarn install | ||
|
||
echo "Build API" | ||
yarn build | ||
|
||
|
||
echo "FINISHED build for UI and API" |