gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant-backoffice] branch master updated: installation script


From: gnunet
Subject: [taler-merchant-backoffice] branch master updated: installation script
Date: Tue, 23 Feb 2021 20:43:39 +0100

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository merchant-backoffice.

The following commit(s) were added to refs/heads/master by this push:
     new 808934f  installation script
808934f is described below

commit 808934fae5968ae0d967bdd3d1d5f5ba9322881e
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Tue Feb 23 16:43:24 2021 -0300

    installation script
---
 README.md              | 13 +++++++++++++
 build-system/Makefile  | 15 +++++++++++++++
 build-system/config.mk |  2 +-
 3 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 0396e75..4ae4d67 100644
--- a/README.md
+++ b/README.md
@@ -20,6 +20,12 @@ Check the requirements and run `./bootstrap` and 
`./configure`
 
 Then run `make` to install all the nodejs dependencies
 
+By default the installation prefix will be `/var/www/html` but it can be 
overrided by --prefix in the configuration process
+
+```shell
+./configure --prefix=/another/directory
+```
+
 ## Running develop
 
 To run a development server run 
@@ -29,9 +35,16 @@ make dev
 ```
 
 This should start a watch process that will reload the server every time that 
a file is saved.
+Override the PORT variable to run the server in another port.
+
+```shell
+make dev PORT=9090
+```
 
 ## Building for deploy
 
+To 
+
 ## CLI Commands
 
 *   `make compile`: Installs dependencies and compile with typescript
diff --git a/build-system/Makefile b/build-system/Makefile
index fc57ad5..37a44b9 100644
--- a/build-system/Makefile
+++ b/build-system/Makefile
@@ -10,10 +10,18 @@ compile:
        pnpm i -r
        pnpm run compile
 
+# .PHONY: dist
+# dist:
+#      $(git-archive-all) --include ./configure taler-wallet-$(shell git 
describe --tags).tar.gz
+
 # .PHONY: publish
 # publish: compile
 #      pnpm publish -r --no-git-checks
 
+# make documentation from docstrings
+.PHONY: echo
+echo:
+       echo ${PORT}
 
 .PHONY: typedoc
 typedoc:
@@ -50,3 +58,10 @@ dev-view: compile
 .PHONY: lint
 lint:
        pnpm run lint
+
+.PHONY: install
+install: build
+       echo install -d ${prefix}
+       for file in `find packages/frontend/build/ -type f`; do \
+               install -m 644 -D $$file 
${prefix}/$${file#packages/frontend/build/}; \
+       done
diff --git a/build-system/config.mk b/build-system/config.mk
index 4684cc4..997b348 100644
--- a/build-system/config.mk
+++ b/build-system/config.mk
@@ -1,5 +1,5 @@
 # this makefile fragment is autogenerated by configure.py
-prefix = /usr/local
+prefix = /home/sebasjm/local-taler
 make = make
 node = node
 npm = npm

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]