Compare commits
6 Commits
d64b49a0d4
...
24ad532a1e
Author | SHA1 | Date |
---|---|---|
b1ek | 24ad532a1e | |
b1ek | 8c8d5ab9c7 | |
b1ek | 6f74986b42 | |
b1ek | 2cda8b607e | |
b1ek | 960ccfc994 | |
b1ek | d79d696ba4 |
|
@ -1,7 +1,7 @@
|
||||||
# package management
|
# package management
|
||||||
node_modules
|
node_modules
|
||||||
package-lock.json
|
package-lock.json
|
||||||
pnpm-lock.yaml
|
pnpm-lock.yml
|
||||||
yarn.lock
|
yarn.lock
|
||||||
|
|
||||||
# env
|
# env
|
||||||
|
@ -9,3 +9,7 @@ yarn.lock
|
||||||
|
|
||||||
# code
|
# code
|
||||||
!*.js
|
!*.js
|
||||||
|
|
||||||
|
# docker
|
||||||
|
docker-compose.yml
|
||||||
|
Dockerfile
|
|
@ -8,4 +8,4 @@ RUN cat .gitignore | xargs rm -rf && \
|
||||||
npm i && \
|
npm i && \
|
||||||
./install
|
./install
|
||||||
|
|
||||||
CMD [ "bash", "-c", "if [[ $APP_DEBUG == 'true' ]]; then npm run dev; else npm run prod; fi" ]
|
CMD [ "npm", "run", "dev" ]
|
|
@ -0,0 +1,11 @@
|
||||||
|
FROM node:19
|
||||||
|
|
||||||
|
WORKDIR /opt/code
|
||||||
|
|
||||||
|
COPY . /opt/code
|
||||||
|
|
||||||
|
RUN cat .gitignore | xargs rm -rf && \
|
||||||
|
npm i --prod && \
|
||||||
|
./install
|
||||||
|
|
||||||
|
CMD [ "npm", "run", "prod" ]
|
|
@ -5,7 +5,7 @@ div#resume_js_app {
|
||||||
border: 1px solid #e1e1e1;
|
border: 1px solid #e1e1e1;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
box-shadow: 0 2px 4px #30303060;
|
box-shadow: 0 2px 4px #30303060;
|
||||||
color: #e1e1e1;
|
color: #e1e1e1 !important;
|
||||||
}
|
}
|
||||||
div#resume_js_app p.js_loading_indicator {
|
div#resume_js_app p.js_loading_indicator {
|
||||||
padding: 0; margin: 0;
|
padding: 0; margin: 0;
|
||||||
|
@ -15,3 +15,7 @@ div#resume_js_app p.js_loading_indicator {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div#resume_js_app * {
|
||||||
|
color: #e1e1e1;
|
||||||
|
}
|
|
@ -3,4 +3,5 @@
|
||||||
rm -rf dist/*
|
rm -rf dist/*
|
||||||
yarn run build
|
yarn run build
|
||||||
|
|
||||||
|
rm -rf ../../public/static/dist
|
||||||
mv dist ../../public/static
|
mv dist ../../public/static
|
10
startup.js
10
startup.js
|
@ -21,6 +21,16 @@ require('dotenv').config({
|
||||||
if (process.env.APP_DEBUG == 'true') {
|
if (process.env.APP_DEBUG == 'true') {
|
||||||
process.env.APP_DEBUG = true;
|
process.env.APP_DEBUG = true;
|
||||||
process.env.DEBUG = '*/*';
|
process.env.DEBUG = '*/*';
|
||||||
|
} else {
|
||||||
|
process.env.DEBUG = null;
|
||||||
|
process.env.NODE_DEBUG = null;
|
||||||
|
process.env.APP_DEBUG = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// build resume page
|
||||||
|
if ((!fs.existsSync('public/static/dist/resume.js')) && (!process.env.APP_DEBUG)) {
|
||||||
|
console.log('Resume files do not exist, building it automatically...');
|
||||||
|
exec('react/resume/build.sh');
|
||||||
}
|
}
|
||||||
|
|
||||||
// load key
|
// load key
|
||||||
|
|
Loading…
Reference in New Issue