From c5eeab3606f850c60a0cc827013de1adf652cdf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Fri, 18 Oct 2019 12:24:47 +0200 Subject: [PATCH] Remove typescript and the compilation step The app is now compiled during the release phase: https://github.com/67P/akkounts-api/pull/6 --- site-cookbooks/kosmos-akkounts/recipes/default.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/site-cookbooks/kosmos-akkounts/recipes/default.rb b/site-cookbooks/kosmos-akkounts/recipes/default.rb index 42d01c2..31206e4 100644 --- a/site-cookbooks/kosmos-akkounts/recipes/default.rb +++ b/site-cookbooks/kosmos-akkounts/recipes/default.rb @@ -59,14 +59,6 @@ application path_to_deploy do npm_install do user deploy_user - production false # typescript is a dev dependency - end - - execute "compile app" do - command "npm run compile:app" - environment "HOME" => "/home/#{deploy_user}" - user deploy_user - cwd path_to_deploy end execute "systemctl daemon-reload" do @@ -107,7 +99,7 @@ application path_to_deploy do user: deploy_user, group: deploy_group, app_dir: path_to_deploy, - entry: "/usr/bin/env node dist/app/index.js" + entry: "/usr/bin/env node release/app/index.js" ) notifies :run, "execute[systemctl daemon-reload]", :delayed notifies :restart, "service[#{app_name}]", :delayed