Commit 969eebf9 authored by Tomáš Hübelbauer's avatar Tomáš Hübelbauer

Add a tip for running TypeScript on Dokku

parent 9f5be959
......@@ -6,6 +6,24 @@
- [ ] See about the [Let's Encrypt issue](https://github.com/dokku/dokku-letsencrypt/issues/146) resolution
- [ ] Figure out how to [deploy apps to subdomains](http://dokku.viewdocs.io/dokku~v0.11.4/deployment/application-deployment/)
## Tips
Running TypeScript applications on Dokku without any Procfiles can be achieved by running this in `start`:
```sh
tsc -p . && node src/index.js`
```
This will compile TypeScript to JavaScript (in the Dokku container only) and then run JavaScript.
It may be necessary to also run this once on the server:
```sh
dokku config:set --no-restart bloggo DOKKU_DEFAULT_CHECKS_WAIT=60
```
This is so that TSC has time to build and Node to start, the default 10 seconds is very low for that.
## Preparing
- Get a Ubuntu 16.04 VPS, e.g.: [Node Ubuntu VPS](https://gitlab.com/TomasHubelbauer/bloggo-node-ubuntu-vps),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment