Compare commits
32 Commits
develop
...
dist/ubunt
Author | SHA1 | Date |
---|---|---|
wpetit | 6396c95c1c | |
wpetit | 882d8bfa53 | |
wpetit | 81b2a38d27 | |
wpetit | 213aa63033 | |
wpetit | eefaa6e6b9 | |
wpetit | 655b4a6e11 | |
wpetit | 286603e9aa | |
wpetit | d177e2dc3f | |
wpetit | c1d7e0daab | |
wpetit | 42f7ba3473 | |
wpetit | 0db3539627 | |
wpetit | 057a5c1fd0 | |
wpetit | e32dd866a5 | |
wpetit | 3a102bde60 | |
wpetit | 1a0456ee84 | |
wpetit | b6b5512471 | |
wpetit | d02ae87a55 | |
wpetit | aed0048d95 | |
wpetit | 98334bafa0 | |
wpetit | 8681776283 | |
wpetit | c026b33954 | |
Teddy Cornaut | ac7fec9e01 | |
wpetit | bbc8f65a47 | |
wpetit | 9749ede28a | |
wpetit | bd133fa9d9 | |
wpetit | ab90365c9c | |
wpetit | ec6de8a217 | |
wpetit | 17cd58d68f | |
wpetit | 99fb4ac6d9 | |
wpetit | 2ceba1f219 | |
wpetit | 7122677351 | |
wpetit | 1d526a37d0 |
|
@ -0,0 +1 @@
|
||||||
|
9
|
|
@ -0,0 +1,14 @@
|
||||||
|
Source: daddy
|
||||||
|
Section: unknown
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Cadoles <contact@cadoles.com>
|
||||||
|
Build-Depends: debhelper (>= 8.0.0), wget, ca-certificates, tar
|
||||||
|
Standards-Version: 3.9.4
|
||||||
|
Homepage: http://forge.cadoles.com/Cadoles/daddy
|
||||||
|
Vcs-Git: http://forge.cadoles.com/Cadoles/daddy.git
|
||||||
|
Vcs-Browser: http://forge.cadoles.com/Cadoles/daddy
|
||||||
|
|
||||||
|
Package: daddy
|
||||||
|
Architecture: amd64
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Description: Daddy app
|
|
@ -0,0 +1 @@
|
||||||
|
/etc/daddy/client-config.js /usr/share/daddy/public/config.js
|
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Daddy app
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/bin/daddy -workdir /usr/share/daddy -config /etc/daddy/config.yml
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -0,0 +1,56 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
# -*- makefile -*-
|
||||||
|
|
||||||
|
# Uncomment this to turn on verbose mode.
|
||||||
|
export DH_VERBOSE=1
|
||||||
|
|
||||||
|
GO_VERSION := 1.13.5
|
||||||
|
OS := linux
|
||||||
|
ARCH := amd64
|
||||||
|
GOPATH=$(HOME)/go
|
||||||
|
|
||||||
|
ifeq (, $(shell which go 2>/dev/null))
|
||||||
|
override_dh_auto_build: install-go
|
||||||
|
|
||||||
|
override_dh_auto_clean: install-go
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq (, $(shell which node 2>/dev/null))
|
||||||
|
override_dh_auto_build: install-nodejs
|
||||||
|
endif
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --with systemd
|
||||||
|
|
||||||
|
override_dh_auto_build: $(GOPATH)
|
||||||
|
GOPATH=$(GOPATH) PATH="$(PATH):/usr/local/go/bin:$(GOPATH)/bin" make deps
|
||||||
|
GOPATH=$(GOPATH) PATH="$(PATH):/usr/local/go/bin:$(GOPATH)/bin" ARCH_TARGETS=$(ARCH) make release
|
||||||
|
|
||||||
|
$(GOPATH):
|
||||||
|
mkdir -p $(GOPATH)
|
||||||
|
|
||||||
|
install-go:
|
||||||
|
wget -nc https://dl.google.com/go/go$(GO_VERSION).$(OS)-$(ARCH).tar.gz
|
||||||
|
tar -C /usr/local -xzf go$(GO_VERSION).$(OS)-$(ARCH).tar.gz
|
||||||
|
|
||||||
|
install-nodejs:
|
||||||
|
wget -O- https://deb.nodesource.com/setup_12.x | bash -
|
||||||
|
apt-get install -y nodejs
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
|
|
||||||
|
mkdir -p debian/daddy/usr/share/daddy
|
||||||
|
mkdir -p debian/daddy/etc/daddy
|
||||||
|
mkdir -p debian/daddy/usr/bin
|
||||||
|
|
||||||
|
cp -r release/server-$(OS)-$(ARCH)/* debian/daddy/usr/share/daddy/
|
||||||
|
|
||||||
|
mv debian/daddy/usr/share/daddy/bin/server debian/daddy/usr/bin/daddy
|
||||||
|
mv debian/daddy/usr/share/daddy/server.conf debian/daddy/etc/daddy/config.yml
|
||||||
|
mv debian/daddy/usr/share/daddy/public/config.js debian/daddy/etc/daddy/client-config.js
|
||||||
|
|
||||||
|
install -d debian/daddy
|
||||||
|
|
||||||
|
override_dh_strip:
|
||||||
|
|
||||||
|
override_dh_auto_test:
|
|
@ -0,0 +1 @@
|
||||||
|
3.0 (native)
|
|
@ -0,0 +1,15 @@
|
||||||
|
server {
|
||||||
|
listen 80 default_server;
|
||||||
|
server_name daddy.local;
|
||||||
|
|
||||||
|
root /usr/share/daddy/client/public;
|
||||||
|
index index.html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri /index.html =404;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /api/v1/graphql {
|
||||||
|
proxy_pass http://127.0.0.1:8080/api/v1/graphql;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
GO_ENV=prod
|
Loading…
Reference in New Issue