Hi Jonathan,

>
> I got TW5 running on Heroku yesterday. I would like to submit a pull
> request to either the TW developer documentation or TW5.com, but wanted to
> post the method here first in case anyone had any comments.
>

Great, thank you. In terms of updating the TW5 docs, at the moment the
distinction between tiddlywiki.com and tiddlywiki.com/dev is that the
latter is for anything that involves JavaScript. So, I'm currently keeping
the Node.js instructions on tiddlywiki.com. Tag the new tiddler "TiddlyWiki
on Node.js" and it will appear in the right place in the table of contents.

Best wishes

Jeremy


>
> 1. Creating the local development environment
>
> npm install -g tiddlywiki # install tw5 globally
> tiddlywiki newwikifolder --init server # create a new tiddlywiki folder
> in 'newwikifolder' using the 'server' edition
> tiddlywiki --server # start the tw5 server
>
> TW5 will now be running at http://localhost:8080/.
>
> 2. Add Heroku config files
>
> To get Heroku to run tw5, we need to add a Procfile that tells it to run
> the tiddlywiki command and we need a package.json to instruct it to install
> tiddlywiki globally (and so Heroku knows it is a node.js application).
> Create these two files:
>
> Procfile
>
> web: tiddlywiki . --server $PORT $:/core/save/all text/plain text/html ""
> "" 0.0.0.0
>
> package.json
>
> {
>   "name": "newapp",
>   "version": "0.0.1",
>   "description": "",
>   "main": "",
>   "scripts": {
>     "start": "tiddlywiki . --server",
>     "postinstall": "npm install -g tiddlywiki"
>   }
> }
>
> At this point you can run the app locally by running:
>
> npm start
>
>
> 3. Create the heroku application
>
> I did created a new app on the heroku dashboard, and then followed the
> instructions to set it up locally. NB: you need heroku toolbelt
> <https://toolbelt.heroku.com/> installed locally.
>
> cd newwikifolder # move into your new wiki directory
> heroku git:remote -a newapp # add the heroku git remote, where 'newapp'
> is the name of the app you created
> git push heroku master # push the master branch to heroku, which launches
> tw5
>
>
> Now TW5 will be running at http://<newapp>.herokuapp.com.
>
> Hope that is helpful, any comments let me know.
>
>
> Jonathan
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to