Coder Social home page Coder Social logo

tiddlywiki-heroku's Introduction

TiddlyWiki on Heroku

TiddlyWiki setup to run well on Heroku.

Runs TiddlyWiki 5.1.18 or higher, using the built in web server.

The package.json file uses the start script to control options to the listen command, which can be set in the Heroku environment variables. Read the full listen of web server command parameters.

  • host: set to 0.0.0.0 to bind to Heroku's system
  • port: set to $PORT as supplied by Heroku
  • readers: allows anonymous readers; set to $ADMIN for private wikis
  • writers: any authenticated user can write
  • username: set from $ADMIN
  • password: set from $PASSWORD

Plugins

  • TiddlyMap
  • Markdown

Deploy

tiddlywiki-heroku's People

Contributors

bmann avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

tiddlywiki-heroku's Issues

Changes to tiddlers are not saved

I try to run it locally with npm start and I deployed it to heroku. When I make change to an existing tiddler or add a new one, it's not saved to the file system. The only file that's changed is $:/StoryList. Nothing gets logged by the server after the initial logs about loading plugins.

Doesn't launch on Heroku

Issue with port binding and also localhost. Probably shouldn't run TW directly.

2019-12-01T01:33:09.774273+00:00 app[api]: Scaled to web@1:Free by user [email protected]
2019-12-01T01:33:11.000000+00:00 app[api]: Build succeeded
2019-12-01T01:33:12.798369+00:00 heroku[web.1]: Starting process with command `npm start`
2019-12-01T01:33:14.954014+00:00 app[web.1]: 
2019-12-01T01:33:14.954039+00:00 app[web.1]: > [email protected] start /app
2019-12-01T01:33:14.954042+00:00 app[web.1]: > tiddlywiki . --server $PORT
2019-12-01T01:33:14.954044+00:00 app[web.1]: 
2019-12-01T01:33:17.273590+00:00 app[web.1]: Serving on http://127.0.0.1:20728
2019-12-01T01:33:17.274057+00:00 app[web.1]: (press ctrl-C to exit)
2019-12-01T01:33:18.289798+00:00 app[web.1]:  syncer-server-filesystem: Dispatching 'save' task: $:/StoryList 
2019-12-01T01:34:13.055560+00:00 heroku[web.1]: State changed from starting to crashed
2019-12-01T01:34:13.060415+00:00 heroku[web.1]: State changed from crashed to starting
2019-12-01T01:34:12.938012+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2019-12-01T01:34:12.938186+00:00 heroku[web.1]: Stopping process with SIGKILL
2019-12-01T01:34:13.039662+00:00 heroku[web.1]: Process exited with status 137
2019-12-01T01:34:15.973429+00:00 heroku[web.1]: Starting process with command `npm start`
2019-12-01T01:34:18.618848+00:00 app[web.1]: 
2019-12-01T01:34:18.618880+00:00 app[web.1]: > [email protected] start /app
2019-12-01T01:34:18.618882+00:00 app[web.1]: > tiddlywiki . --server $PORT
2019-12-01T01:34:18.618885+00:00 app[web.1]: 
2019-12-01T01:34:21.636993+00:00 app[web.1]: Serving on http://127.0.0.1:28367
2019-12-01T01:34:21.637600+00:00 app[web.1]: (press ctrl-C to exit)
2019-12-01T01:34:22.652742+00:00 app[web.1]:  syncer-server-filesystem: Dispatching 'save' task: $:/StoryList 
2019-12-01T01:34:30.568561+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=bmann-tw.herokuapp.com request_id=7ae45027-53e1-4fac-a03d-c65b8c2181c8 fwd="69.172.175.61" dyno= connect= service= status=503 bytes= protocol=https
2019-12-01T01:35:16.547501+00:00 heroku[web.1]: State changed from starting to crashed
2019-12-01T01:35:16.468051+00:00 app[web.1]: Error waiting for process to terminate: No child processes
2019-12-01T01:35:16.445371+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2019-12-01T01:35:16.445557+00:00 heroku[web.1]: Stopping process with SIGKILL
2019-12-01T01:35:16.526330+00:00 heroku[web.1]: Process exited with status 22
2019-12-01T01:35:18.106232+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=bmann-tw.herokuapp.com request_id=2eb69ffa-ccd6-40d7-bd5a-6810cc82e2e0 fwd="69.172.175.61" dyno= connect= service= status=503 bytes= protocol=https
2019-12-01T01:35:19.237993+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bmann-tw.herokuapp.com request_id=f23d8b23-bec8-4ee3-9148-03769e6396b5 fwd="69.172.175.61" dyno= connect= service= status=503 bytes= protocol=https
2019-12-01T01:35:29.525038+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=bmann-tw.herokuapp.com request_id=8d4b568f-9dc8-436a-861b-bd8d2b89a958 fwd="69.172.175.61" dyno= connect= service= status=503 bytes= protocol=https
2019-12-01T01:35:29.756038+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bmann-tw.herokuapp.com request_id=989779c1-4029-4648-8bc5-30f410077593 fwd="69.172.175.61" dyno= connect= service= status=503 bytes= protocol=https

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.