You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ashes/README.md
+24-12Lines changed: 24 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
* node
6
6
7
7
5.1.0 or above is required version for Ashes.
8
-
To install this or anothers versions of node you can use [nvm](https://github.com/creationix/nvm) or [n](https://github.com/tj/n) node version manager.
8
+
To install this or anothers versions of node you can use [brew](http://brew.sh), [nvm](https://github.com/creationix/nvm) or [n](https://github.com/tj/n) node version manager.
9
9
10
10
If using nvm, run the following to install the version listed in `.nvmrc`. For example, if using node `v5.1.0`, follow these commands:
11
11
@@ -40,16 +40,25 @@ npm install
40
40
41
41
### Get certificate to communicate with Phoenix
42
42
43
-
You can clone `prov-shit` repository and use `${PROV_SHIT_HOME}/ansible/roles/secret_keys/files/public_key.pem`. It is encrypted by ansible and you'll have to decrypt it.
43
+
You can clone `prov-shit` repository and use `${PROV_SHIT_HOME}/ansible/roles/secret_keys/files/public_key.pem`. It is encrypted by ansible and you'll have to decrypt it. Add it to `.env` file: `export PHOENIX_PUBLIC_KEY=${PATH_TO_KEY}`.
44
+
45
+
or just add `export DEV_SKIP_JWT_VERIFY=1` to `.env` file for non-production usage.
44
46
45
47
### Run the dev server
46
48
47
49
```
48
-
PHOENIX_PUBLIC_KEY=${PATH_TO_KEY} npm run dev
50
+
make d
49
51
```
50
52
51
-
By default, gulp run tests before starting node-server, but you can define env variable ASHES_NO_TEST_FOR_DEV
52
-
for disable this behaviour.
53
+
By default, gulp run tests before starting node-server, but you can define env variable `ASHES_NO_TEST_FOR_DEV`
54
+
for disable this behaviour. Also, see `ASHES_NO_WATCH_FOR_TEST`:
55
+
56
+
```
57
+
# disable watching of test files
58
+
export ASHES_NO_WATCH_FOR_TEST=1
59
+
# disable all tests while developing
60
+
export ASHES_NO_TEST_FOR_DEV=1
61
+
```
53
62
54
63
Also gulp can notify you about tasks completion if env variable ASHES_NOTIFY_ABOUT_TASKS is defined.
55
64
@@ -59,33 +68,36 @@ or completely override watchify options via `.watchifyrc` file in project root.
59
68
### Pointing to Phoenix
60
69
61
70
By default, Ashes looks locally for phoenix and ElasticSearch `http://localhost`. If you want to change
62
-
which phoenix and ES Ashes uses, you can set the `API_URL` environment variable.
71
+
which phoenix and ES Ashes uses, you can set the `API_URL` environment variable`export API_URL=...` to `.env` file.
63
72
64
73
```
65
74
export API_URL=http://10.240.0.3
66
75
npm run dev
67
76
```
68
77
78
+
### Run the production server
79
+
80
+
```
81
+
make p
82
+
```
83
+
69
84
### Stripe.js
70
85
71
86
In order to Stripe.js to work (used for creating credit cards in Stripe) you need to provide publishable key for stripe (https://stripe.com/docs/stripe.js#setting-publishable-key)
72
-
You can set Stripe key by exporting `STRIPE_PUBLISHABLE_KEY` variable, or setting it in your `.env` file if you're using foreman, or run dev command with it:
87
+
You can set Stripe key by exporting `STRIPE_PUBLISHABLE_KEY` variable, or setting it in your `.env`:
0 commit comments