Deploy akkounts-api behind an nginx reverse proxy with a TLS cert #109
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user
TypeScript is a dev dependency, because the app is supposed to be compiled in development, not production.