forked from athensresearch/athens
-
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.
fix: boot error in prod mode (athensresearch#41)
* Add source maps * Add build script for self-hosted app * Build step for app * Tweak artifact name * Freestyling now * Enable building.. * Run yarn * Add comments to explain the commands * fix: boot error when compiling for production
- Loading branch information
1 parent
318faaf
commit 76d0881
Showing
4 changed files
with
71 additions
and
1 deletion.
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
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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eo pipefail | ||
|
||
# Make sure all JS deps are available | ||
yarn | ||
|
||
# Build app (see shadow-cljs.edn config) | ||
lein prod | ||
|
||
RELEASE_NAME=${RELEASE_NAME:-"athens-app"} | ||
|
||
# Clean before | ||
rm -rf $RELEASE_NAME | ||
|
||
cp -R resources/public $RELEASE_NAME | ||
|
||
tar -zcvf $RELEASE_NAME.tar.gz $RELEASE_NAME | ||
|
||
# Clean after | ||
rm -rf $RELEASE_NAME | ||
|
||
|
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