Deploy akkounts-api behind an nginx reverse proxy with a TLS cert #109

Manually merged
raucao merged 7 commits from feature/18-akkounts-api into master 2019-10-18 12:31:40 +00:00
Showing only changes of commit c5eeab3606 - Show all commits

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
Review

TypeScript is a dev dependency, because the app is supposed to be compiled in development, not production.

TypeScript is a dev dependency, because the app is supposed to be compiled in development, not production.
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