Compare commits
No commits in common. "24ad532a1e6c9d079a3e0ab3d04f025156e4c727" and "d64b49a0d42e95b2b3f4994be48f169ce82eb88f" have entirely different histories.
24ad532a1e
...
d64b49a0d4
|
@ -1,7 +1,7 @@
|
||||||
# package management
|
# package management
|
||||||
node_modules
|
node_modules
|
||||||
package-lock.json
|
package-lock.json
|
||||||
pnpm-lock.yml
|
pnpm-lock.yaml
|
||||||
yarn.lock
|
yarn.lock
|
||||||
|
|
||||||
# env
|
# env
|
||||||
|
@ -9,7 +9,3 @@ 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 [ "npm", "run", "dev" ]
|
CMD [ "bash", "-c", "if [[ $APP_DEBUG == 'true' ]]; then npm run dev; else npm run prod; fi" ]
|
|
@ -1,11 +0,0 @@
|
||||||
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 !important;
|
color: #e1e1e1;
|
||||||
}
|
}
|
||||||
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,7 +15,3 @@ 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,5 +3,4 @@
|
||||||
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,16 +21,6 @@ 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