From 98ee93b93a871cb5a20425657c1d63f911b235b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 8 Jun 2019 14:05:48 +0200 Subject: Use uwsgi to start caldance application --- .../role/templates/caldance/caldance-app.service.erb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/role/templates/caldance/caldance-app.service.erb (limited to 'modules/role/templates/caldance/caldance-app.service.erb') diff --git a/modules/role/templates/caldance/caldance-app.service.erb b/modules/role/templates/caldance/caldance-app.service.erb new file mode 100644 index 0000000..f5694bf --- /dev/null +++ b/modules/role/templates/caldance/caldance-app.service.erb @@ -0,0 +1,20 @@ +[Unit] +Description=Caldance application +After=network.target + +[Service] +WorkingDirectory=<%= @caldance_app %> + +<% @environment.each do |env, val| %> +Environment=<%= env %>="<%= val %>" +<% end %> +EnvironmentFile=<%= @home %>/caldance_env +Type=simple +User=<%= @user %> +Group=<%= @group %> +ExecStart=<%= @uwsgi_path %> <%= @caldance_app %>/app.ini +RuntimeDirectory=caldance + +[Install] +WantedBy=multi-user.target + -- cgit v1.2.3