1.0.162 • Published 5 months ago

@dreamcatcher-tech/crm-pm2 v1.0.162

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
5 months ago

crm-pm2

When run, will:

  1. Store its blocks on disk
  2. Begin listening on the given address
  3. Load up SSL certs from a .env file
  4. publish its multiaddresses to console
  5. install bar bones version of the CRM.
  6. populate the sector data
  7. optionally generate fake customer data and progressively insert it

To deploy this onsite:

  1. install pm2
  2. If on windows, use pm2 installer
  3. Set SSL keys in a config file
  4. pm2 install @dreamcatcher-tech/crm-pm2 to pull down the latest version from npm and run it

Server options

--faker 123 Generate fake data, using the given number of customers

--port 1234 Listen on the given port number, or use a default random one

--admin rootChainId Supply a chainId to allow to connect without being authd

repo required as this is installed globally, so must say where the repo will be. KV store is in repo/interpulse/.

.env provided as a file which holds SSL keys. If a .env file is found at the same place as the repo, it will be loaded ie: repo/.env will be loaded.

Upgrade process

  1. Halt pm2
  2. zip up a copy of the db files for backup
  3. probably pm2 install @dreamcatcher-tech/crm-pm2 to upgrade the installed package
  4. Connect using dev version of the webapp for testing
  5. publish the webapp if passes testing

Generating SSL certs

docker run -it --rm --name certbot -v "./certbot:/etc/letsencrypt" -v "./.aws/config:/root/.aws/config" certbot/dns-route53 certonly -d <DNS NAME HERE> --agree-tos

Following instructions at https://medium.com/w-logs/generate-standalone-ssl-certificate-with-lets-encrypt-for-aws-route-53-25a30ca3062 and https://certbot-dns-route53.readthedocs.io/en/stable/

Using SSL in dev environment

If a non self signed cert is used, then chrome will reject it until the browser is navigated to https://127.0.0.1:3000 or whatever the Engine is listening on, and then the cert is accepted.

It will fail without useful warnings before this step is completed.

1.0.161

5 months ago

1.0.160

5 months ago

1.0.162

5 months ago

1.0.143

5 months ago

1.0.142

5 months ago

1.0.145

5 months ago

1.0.144

5 months ago

1.0.141

5 months ago

1.0.140

6 months ago

1.0.147

5 months ago

1.0.146

5 months ago

1.0.149

5 months ago

1.0.148

5 months ago

1.0.132

6 months ago

1.0.131

6 months ago

1.0.134

6 months ago

1.0.133

6 months ago

1.0.130

6 months ago

1.0.139

6 months ago

1.0.136

6 months ago

1.0.135

6 months ago

1.0.138

6 months ago

1.0.137

6 months ago

1.0.154

5 months ago

1.0.153

5 months ago

1.0.156

5 months ago

1.0.155

5 months ago

1.0.150

5 months ago

1.0.152

5 months ago

1.0.151

5 months ago

1.0.158

5 months ago

1.0.157

5 months ago

1.0.159

5 months ago

1.0.101

10 months ago

1.0.100

10 months ago

1.0.107

10 months ago

1.0.106

10 months ago

1.0.109

10 months ago

1.0.108

10 months ago

1.0.103

10 months ago

1.0.102

10 months ago

1.0.105

10 months ago

1.0.104

10 months ago

1.0.121

9 months ago

1.0.120

9 months ago

1.0.123

7 months ago

1.0.122

9 months ago

1.0.129

6 months ago

1.0.128

6 months ago

1.0.125

6 months ago

1.0.124

6 months ago

1.0.127

6 months ago

1.0.126

6 months ago

1.0.110

10 months ago

1.0.112

10 months ago

1.0.111

10 months ago

1.0.118

9 months ago

1.0.117

10 months ago

1.0.119

9 months ago

1.0.114

10 months ago

1.0.113

10 months ago

1.0.116

10 months ago

1.0.115

10 months ago

1.0.99

10 months ago

1.0.98

10 months ago

1.0.97

10 months ago

1.0.96

10 months ago

1.0.95

11 months ago

1.0.94

11 months ago

1.0.93

11 months ago

1.0.92

11 months ago

1.0.91

11 months ago

1.0.90

11 months ago

1.0.89

1 year ago

1.0.88

1 year ago

1.0.87

1 year ago

1.0.86

1 year ago

1.0.85

1 year ago

1.0.84

1 year ago

1.0.83

1 year ago

1.0.82

1 year ago

1.0.81

1 year ago

1.0.80

1 year ago

1.0.79

1 year ago

1.0.78

1 year ago

1.0.77

1 year ago

1.0.76

1 year ago

1.0.75

1 year ago

1.0.74

1 year ago

1.0.73

1 year ago

1.0.72

1 year ago

1.0.71

1 year ago

1.0.70

1 year ago

1.0.69

1 year ago

1.0.68

1 year ago

1.0.67

1 year ago

1.0.66

1 year ago

1.0.65

1 year ago

1.0.64

1 year ago

1.0.63

1 year ago

1.0.62

1 year ago

1.0.61

1 year ago

1.0.60

1 year ago

1.0.59

1 year ago

1.0.58

1 year ago

1.0.57

1 year ago

1.0.56

1 year ago

1.0.55

1 year ago

1.0.54

1 year ago

1.0.53

1 year ago

1.0.52

1 year ago

1.0.51

1 year ago

1.0.50

1 year ago

1.0.49

1 year ago

1.0.48

1 year ago

1.0.47

1 year ago

1.0.46

1 year ago

1.0.45

1 year ago

1.0.44

1 year ago

1.0.43

1 year ago

1.0.42

1 year ago

1.0.41

1 year ago

1.0.40

1 year ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago