docker ready for api (no app yet)
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user