You can easily view the differences between this fork and the upstream project.
- Launch a t2.micro instance from the Ubuntu Server 16.04 LTS AMI.
- Add an EBS volume to hold the tiddlers and uncheck delete on termination.
- SSH into the instance (right click on the instance and select Connect for instructions).
cd /opt
chown --recursive ubuntu:ubuntu TiddlyWiki5/
cd TiddlyWiki5/
git clone https://github.com/moderatemisbehaviour/TiddlyWiki5.git
git submodule init
git submodule update
- Format and mount the EBS volume you created earlier to
/var/tiddlers/
. chown --recursive ubuntu:ubuntu /var/tiddlers/
- Add Pinboard API token as an environment variable.
- sudo nano
/etc/environment
- Add a new line:
pinboard_api_token=
your_pinboard_api_token - Reboot the system from the EC2 web console.
- sudo nano
- Install Node.js.
cd /opt/TiddlyWiki5/
- Start the server. There are several ways to do this..
- Run
npm start
. This will run the TiddlyWiki command and put it into the background with the&
operator, but the process will be killed when the parent shell ends, which can be a problem particularly if you have used SSH to connect to a server, as the session will eventually timeout and the shell will be killed. - Despite the name you can run the
restart-server.sh
script to just start the server. But read below for it's intended usage...
- Run
The restart-server.sh
script can be used with cron to restart the server on a regular basis. The main advantage of this is that the get-pinboard-bookmarks
plugin will get updated bookmarks from Pinboard, as it only retrieves these on server start currently.
sudo touch /var/run/tiddlywiki.pid
sudo chmod a+w /var/run/tiddlywiki.pid
crontab -e
- Add a new line below the comments
0 0 */1 * * /opt/TiddlyWiki5/restart-server.sh
. The server will now be restarted everyday at midnight... - But you want the server running right now too, so just call the script manually
./restart-server.sh
. - Output from the server can be found in
nohup.out
.