docker ready for api (no app yet)

This commit is contained in:
2020-12-14 10:45:47 +01:00
parent 97df594616
commit f697afe63a
14 changed files with 120 additions and 65 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/bin/sh
cat /etc/passwd|grep 1000
cd /app
echo "Cleaning node_modules"
rm -rf node_modules
echo "Cleaning npm cache"
npm cache clean --f
echo "Npm install"
npm install
# echo "Run npm dev"
# npm run dev
echo "APP_ENV $APP_ENV"
if [ "$APP_ENV" = "prod" ]; then
echo "Run npm prod"
npm run prod
else
echo "Run npm dev"
npm run dev
fi
+2 -2
View File
@@ -1,8 +1,8 @@
server {
listen 80 default_server;
root /var/www/html/d8.materio.com/public_html/web;
root /var/www/html/api/src/web;
index index.html index.php;
server_name *.materio.com;
server_name *.enfrancais.fr;
charset utf-8;
-16
View File
@@ -1,16 +0,0 @@
#!/bin/sh
# cat /etc/passwd|grep 1000
cd /app
echo "Cleaning node_modules"
rm -rf node_modules
echo "Cleaning npm cache"
npm cache clean --f
echo "Npm install"
npm install
echo "Run npm dev"
npm run dev