Skip to content

Commit

Permalink
Merge pull request #15 from denOldTimer/chapter-ten
Browse files Browse the repository at this point in the history
deploy to heroku
  • Loading branch information
denOldTimer authored Mar 9, 2021
2 parents a00eadb + 7c116e2 commit 939666e
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@ Lifecycle hooks : { [beforeCreated], [created], [beforeMount], [mounted],

---

## Advanced : Chapter 10 : Deploying to Heroku

3. **DOWNLOAD** **[release 1.7.0](https://github.com/denOldTimer/releases/1.10.0)**

---

[data]: https://v3.vuejs.org/api/options-data.html#data-2
[props]: https://v3.vuejs.org/api/options-data.html#props
[computed]: https://v3.vuejs.org/api/options-data.html#computed
Expand Down
18 changes: 17 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@
"@vue/cli-service": "~4.5.0",
"@vue/compiler-sfc": "^3.0.0",
"babel-eslint": "^10.1.0",
"connect-history-api-fallback": "^1.6.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^7.0.0-0",
"express": "^4.17.1",
"express-sslify": "^1.2.0",
"sass": "^1.32.8",
"sass-loader": "^10.1.1"
"sass-loader": "^10.1.1",
"serve-static": "^1.14.1"
},
"eslintConfig": {
"root": true,
Expand Down
12 changes: 12 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const express = require("express");
const serverStatic = require("serve-static");
const history = require("connect-history-api-fallback");
const enforce = require("express-sslify");

const app = express();

app.use(enforce.HTTPS({ trustProtoHeader: true }));
app.use(serveStatic(__dirname + "/dist"));
app.use(history());

app.listen(process.eventNames.PORT || 5000);

0 comments on commit 939666e

Please sign in to comment.