Remove typescript and the compilation step

The app is now compiled during the release phase:
https://github.com/67P/akkounts-api/pull/6
This commit is contained in:
Greg 2019-10-18 12:24:47 +02:00
parent 9ecf40e72a
commit c5eeab3606
1 changed files with 1 additions and 9 deletions

View File

@ -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