Compare commits
6 Commits
d64b49a0d4
...
24ad532a1e
Author | SHA1 | Date |
---|---|---|
b1ek | 24ad532a1e | |
b1ek | 8c8d5ab9c7 | |
b1ek | 6f74986b42 | |
b1ek | 2cda8b607e | |
b1ek | 960ccfc994 | |
b1ek | d79d696ba4 |
|
@ -1,11 +1,15 @@
|
|||
# package management
|
||||
node_modules
|
||||
package-lock.json
|
||||
pnpm-lock.yaml
|
||||
pnpm-lock.yml
|
||||
yarn.lock
|
||||
|
||||
# env
|
||||
.env
|
||||
|
||||
# code
|
||||
!*.js
|
||||
!*.js
|
||||
|
||||
# docker
|
||||
docker-compose.yml
|
||||
Dockerfile
|
|
@ -8,4 +8,4 @@ RUN cat .gitignore | xargs rm -rf && \
|
|||
npm i && \
|
||||
./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;
|
||||
font-family: monospace;
|
||||
box-shadow: 0 2px 4px #30303060;
|
||||
color: #e1e1e1;
|
||||
color: #e1e1e1 !important;
|
||||
}
|
||||
div#resume_js_app p.js_loading_indicator {
|
||||
padding: 0; margin: 0;
|
||||
|
@ -14,4 +14,8 @@ 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,4 +3,5 @@
|
|||
rm -rf dist/*
|
||||
yarn run build
|
||||
|
||||
rm -rf ../../public/static/dist
|
||||
mv dist ../../public/static
|
10
startup.js
10
startup.js
|
@ -21,6 +21,16 @@ 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