Compare commits
No commits in common. "24ad532a1e6c9d079a3e0ab3d04f025156e4c727" and "d64b49a0d42e95b2b3f4994be48f169ce82eb88f" have entirely different histories.
24ad532a1e
...
d64b49a0d4
|
@ -1,15 +1,11 @@
|
|||
# package management
|
||||
node_modules
|
||||
package-lock.json
|
||||
pnpm-lock.yml
|
||||
pnpm-lock.yaml
|
||||
yarn.lock
|
||||
|
||||
# env
|
||||
.env
|
||||
|
||||
# code
|
||||
!*.js
|
||||
|
||||
# docker
|
||||
docker-compose.yml
|
||||
Dockerfile
|
||||
!*.js
|
|
@ -8,4 +8,4 @@ RUN cat .gitignore | xargs rm -rf && \
|
|||
npm i && \
|
||||
./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;
|
||||
font-family: monospace;
|
||||
box-shadow: 0 2px 4px #30303060;
|
||||
color: #e1e1e1 !important;
|
||||
color: #e1e1e1;
|
||||
}
|
||||
div#resume_js_app p.js_loading_indicator {
|
||||
padding: 0; margin: 0;
|
||||
|
@ -14,8 +14,4 @@ div#resume_js_app p.js_loading_indicator {
|
|||
transform: translate(-50%, -50%);
|
||||
width: fit-content;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div#resume_js_app * {
|
||||
color: #e1e1e1;
|
||||
}
|
|
@ -3,5 +3,4 @@
|
|||
rm -rf dist/*
|
||||
yarn run build
|
||||
|
||||
rm -rf ../../public/static/dist
|
||||
mv dist ../../public/static
|
10
startup.js
10
startup.js
|
@ -21,16 +21,6 @@ require('dotenv').config({
|
|||
if (process.env.APP_DEBUG == 'true') {
|
||||
process.env.APP_DEBUG = true;
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue