@@ -22,33 +22,34 @@ Here you find how to deploy your application to a Server.
22
22
4 . Specifying a start script [ Procfile] ( https://devcenter.heroku.com/articles/procfile ) or make sure you have the start script in your packages.json
23
23
24
24
25
- So your final package.json should look something like this:
26
- ``` javascript
27
- {
28
- " name" : " AwsomeBot" ,
29
- " version" : " 0.0.1" ,
30
- " description" : " botishness" ,
31
- " main" : " index.js" ,
32
- " dependencies" : {
33
- " botpress" : " 0.x" ,
34
- " botpress-analytics" : " ^1.0.7" ,
35
- " botpress-hitl" : " 0.0.1" ,
36
- " botpress-messenger" : " ^1.0.16" ,
37
- " botpress-scheduler" : " ^1.0.1" ,
38
- " botpress-subscription" : " ^1.0.2"
39
- },
40
- " scripts" : {
41
- " start" : " botpress start" ,
42
- " test" : " echo \" Error: no test specified\" && exit 1"
43
- },
44
- " author" : " sbeta" ,
45
- " license" : " AGPL-3.0" ,
46
- " engines" : {
47
- " node" : " >6.0.0"
48
- }
49
- }
50
-
51
- ```
25
+ * So your final package.json should look something like this:
26
+
27
+ ``` javascript
28
+ {
29
+ " name" : " AwsomeBot" ,
30
+ " version" : " 0.0.1" ,
31
+ " description" : " botishness" ,
32
+ " main" : " index.js" ,
33
+ " dependencies" : {
34
+ " botpress" : " 0.x" ,
35
+ " botpress-analytics" : " ^1.0.7" ,
36
+ " botpress-hitl" : " 0.0.1" ,
37
+ " botpress-messenger" : " ^1.0.16" ,
38
+ " botpress-scheduler" : " ^1.0.1" ,
39
+ " botpress-subscription" : " ^1.0.2"
40
+ },
41
+ " scripts" : {
42
+ " start" : " botpress start" ,
43
+ " test" : " echo \" Error: no test specified\" && exit 1"
44
+ },
45
+ " author" : " sbeta" ,
46
+ " license" : " AGPL-3.0" ,
47
+ " engines" : {
48
+ " node" : " >6.0.0"
49
+ }
50
+ }
51
+
52
+ ```
52
53
53
54
54
55
5. Try it locally and see if it works: ` heroku local web`
@@ -123,31 +124,31 @@ OBS: You may need confirm the domain you using. AWS sends an email to address of
123
124
124
125
8. Now you connected, run this commands
125
126
126
- ``` Bash
127
- cd ~
127
+ ```Bash
128
+ cd ~
128
129
129
- curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
130
+ curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
130
131
131
- sudo bash nodesource_setup.sh
132
- ```
132
+ sudo bash nodesource_setup.sh
133
+ ```
133
134
134
135
1. Then install NodeJs and NPM with
135
136
136
- ``` Bash
137
- sudo apt-get install nodejs
138
- ```
137
+ ```Bash
138
+ sudo apt-get install nodejs
139
+ ```
139
140
140
141
2. Next you need to compile some source files
141
142
142
- ``` Bash
143
- sudo apt-get install build-essential
144
- ```
143
+ ```Bash
144
+ sudo apt-get install build-essential
145
+ ```
145
146
146
147
3. You can run `npm --version` and `node --version` to check if installation is ok.
147
148
148
- 9 . [ Install pm2 to manage process ] ( https://github.com/Unitech/pm2 )
149
+ 9. Install [ pm2](https://github.com/Unitech/pm2) to manage process
149
150
150
- ` npm install -g pm2 `
151
+ `npm install -g pm2`
151
152
152
153
10. [Setup Nginx and pm2](https://doesnotscale.com/deploying-node-js-with-pm2-and-nginx/)
153
154
0 commit comments