mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-11-22 00:02:24 +00:00
Fix incorrect command and split into several runs (#19)
* Change node version in Dockerfile and steps * Change name of scripts in package.json
This commit is contained in:
parent
61a0713ad5
commit
de6ab6277b
@ -1,11 +1,13 @@
|
|||||||
FROM node:10.19.0
|
FROM node:16.8.0
|
||||||
|
|
||||||
ENV IS_DOCKER=true
|
ENV IS_DOCKER=true
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ["package.json", "package-lock.json*", "./"]
|
COPY ["package.json", "package-lock.json*", "./"]
|
||||||
RUN npm install && npm build-tails && npm install nodemon
|
RUN npm install
|
||||||
|
RUN npm install nodemon
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN npm run build-tailwind
|
||||||
|
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "npm", "start" ]
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"watch": {
|
"watch": {
|
||||||
"build-tail": {
|
"build-tailwind": {
|
||||||
"patterns": [
|
"patterns": [
|
||||||
"views/"
|
"views/"
|
||||||
],
|
],
|
||||||
@ -13,8 +13,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"start": "npx nodemon ./bin/www -e js,pug,sass",
|
"start": "npx nodemon ./bin/www -e js,pug,sass",
|
||||||
"watch-tail": "npm-watch",
|
"watch-tailwind": "npx npm-watch",
|
||||||
"build-tail": "postcss src/tailwind.css -o public/stylesheets/style.css"
|
"build-tailwind": "npx postcss src/tailwind.css -o public/stylesheets/style.css"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sendgrid/mail": "^7.4.4",
|
"@sendgrid/mail": "^7.4.4",
|
||||||
|
Loading…
Reference in New Issue
Block a user