commit
009e002142
10 changed files with 28 additions and 28 deletions
|
|
@ -8,31 +8,31 @@
|
||||||
|
|
||||||
|
|
||||||
## Using systemd to manage the server:
|
## Using systemd to manage the server:
|
||||||
This app comes with a `ghost-writer.service` file which is already set up to
|
This app comes with a `phantom-ink.service` file which is already set up to
|
||||||
manage the server, it just requires a little bit of additional setup. If you
|
manage the server, it just requires a little bit of additional setup. If you
|
||||||
change any of the symlinking in the steps below, it is your responsibility to
|
change any of the symlinking in the steps below, it is your responsibility to
|
||||||
figure it out, I will not guarantee support for people who attempt to modify
|
figure it out, I will not guarantee support for people who attempt to modify
|
||||||
the service file beyond the steps below.
|
the service file beyond the steps below.
|
||||||
|
|
||||||
6. Create a symlink named `server` in the server root (`/`) pointing to the
|
6. Create a symlink named `server` in the server root (`/`) pointing to the
|
||||||
server folder in the Ghost Writer git repository.
|
server folder in the Phantom Ink git repository.
|
||||||
(Ex: `sudo ln -s ~/Ghost-Writer-Online/server /server`)
|
(Ex: `sudo ln -s ~/Phantom-Ink-Online/server /server`)
|
||||||
7. Create a symlink named `ghost-writer.service` in `/etc/systemd/system`
|
7. Create a symlink named `phantom-ink.service` in `/etc/systemd/system`
|
||||||
pointing to the service file in the `server` folder of the Ghost Writer Online
|
pointing to the service file in the `server` folder of the Phantom Ink Online
|
||||||
repository. (Ex: `sudo ln -s /server/ghost-writer.service /etc/systemd/system/ghost-writer.service`)
|
repository. (Ex: `sudo ln -s /server/phantom-ink.service /etc/systemd/system/phantom-ink.service`)
|
||||||
8. Run `whereis node` and copy the absolute file path of the output
|
8. Run `whereis node` and copy the absolute file path of the output
|
||||||
9. Edit the `ghost-writer.service` file to replace change the
|
9. Edit the `phantom-ink.service` file to replace change the
|
||||||
`ExecStart=node dist/main.js` to replace `node` with the file path you copied
|
`ExecStart=node dist/main.js` to replace `node` with the file path you copied
|
||||||
from the previous step
|
from the previous step
|
||||||
10. Reload the systemd daemon with `sudo systemd daemon-reload` to make the
|
10. Reload the systemd daemon with `sudo systemd daemon-reload` to make the
|
||||||
changes to the service file take effect.
|
changes to the service file take effect.
|
||||||
11. Start the websocket server with `sudo systemctl start ghost-writer`
|
11. Start the websocket server with `sudo systemctl start phantom-ink`
|
||||||
12. Make sure the server is started by running `systemctl status ghost-writer`
|
12. Make sure the server is started by running `systemctl status phantom-ink`
|
||||||
|
|
||||||
* To start the server, run `sudo sustemctl start ghost-writer`
|
* To start the server, run `sudo sustemctl start phantom-ink`
|
||||||
* To restart the server, run `sudo systemctl restart ghost-writer`
|
* To restart the server, run `sudo systemctl restart phantom-ink`
|
||||||
* To stop the server, run `sudo systemctl stop ghost-writer`
|
* To stop the server, run `sudo systemctl stop phantom-ink`
|
||||||
* To access the server logs, run `sudo journalctl -u ghost-writer`
|
* To access the server logs, run `sudo journalctl -u phantom-ink`
|
||||||
|
|
||||||
|
|
||||||
## Using a detached terminal:
|
## Using a detached terminal:
|
||||||
|
|
@ -55,5 +55,5 @@ this repository.
|
||||||
All of the configuration for the server is done in the `server.toml` with
|
All of the configuration for the server is done in the `server.toml` with
|
||||||
explanations in the file. When a value is changed in the config, you will need
|
explanations in the file. When a value is changed in the config, you will need
|
||||||
to restart the server. This is either through systemd
|
to restart the server. This is either through systemd
|
||||||
(`sudo systemctl restart ghost-writer`) or through your preferred terminal
|
(`sudo systemctl restart phantom-ink`) or through your preferred terminal
|
||||||
detacher, by stopping then re-starting the process.
|
detacher, by stopping then re-starting the process.
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Ghost Writer websocket server
|
Description=Phantom Ink websocket server
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 576 KiB |
BIN
web/public/assets/phantom_ink_logo.png
Normal file
BIN
web/public/assets/phantom_ink_logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 554 KiB |
|
|
@ -5,11 +5,11 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
<title>Ghost Writer Online</title>
|
<title>Phantom Ink Online</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<noscript>
|
<noscript>
|
||||||
<strong>We're sorry but Ghost Writer Online doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
<strong>We're sorry but Phantom Ink Online doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||||
</noscript>
|
</noscript>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<!-- built files will be auto injected -->
|
<!-- built files will be auto injected -->
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
v-else
|
v-else
|
||||||
class="device-error"
|
class="device-error"
|
||||||
>
|
>
|
||||||
<h1 class="centre">Ghost Writer Online</h1>
|
<h1 class="centre">Phantom Ink Online</h1>
|
||||||
<p class="centre">
|
<p class="centre">
|
||||||
To use this site you must be using a laptop, desktop, or iPad.
|
To use this site you must be using a laptop, desktop, or iPad.
|
||||||
If you are on one of those devices and you still see this message,
|
If you are on one of those devices and you still see this message,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
>
|
>
|
||||||
<h2 class="centre">Attributions:</h2>
|
<h2 class="centre">Attributions:</h2>
|
||||||
<p class="centre">
|
<p class="centre">
|
||||||
Ghost Writer is designed and created by
|
Phantom Ink is designed and created by
|
||||||
<a href="https://resonym.com" target="_blank" rel="noopener">Resonym</a>
|
<a href="https://resonym.com" target="_blank" rel="noopener">Resonym</a>
|
||||||
<br>
|
<br>
|
||||||
Online Prototype Made By: Oliver Akins
|
Online Prototype Made By: Oliver Akins
|
||||||
|
|
|
||||||
|
|
@ -100,14 +100,14 @@
|
||||||
{{ visible ? `Hide` : `Show` }} Past Questions
|
{{ visible ? `Hide` : `Show` }} Past Questions
|
||||||
</button>
|
</button>
|
||||||
<a
|
<a
|
||||||
href="https://playghostwriter.com"
|
href="http://phantominkgame.com/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
id="game-logo-link"
|
id="game-logo-link"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
id="game-logo"
|
id="game-logo"
|
||||||
src="/assets/ghost_writer_logo.png"
|
src="/assets/phantom_ink_logo.png"
|
||||||
alt="Ghost Writer Logo"
|
alt="Phantom Ink Logo"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
>
|
>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="CreateJoinGame" class="maximize view">
|
<div id="CreateJoinGame" class="maximize view">
|
||||||
<div class="centre" id="logo-header">
|
<div class="centre" id="logo-header">
|
||||||
<a href="http://playghostwriter.com" target="_blank" rel="noopener">
|
<a href="http://phantominkgame.com/" target="_blank" rel="noopener">
|
||||||
<img
|
<img
|
||||||
src="/assets/ghost_writer_logo.png"
|
src="/assets/phantom_ink_logo.png"
|
||||||
alt="Ghost Writer Logo"
|
alt="Phantom Ink Logo"
|
||||||
height="200"
|
height="200"
|
||||||
>
|
>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="GameLobby" class="maximize view">
|
<div id="GameLobby" class="maximize view">
|
||||||
<div class="centre" id="logo-header">
|
<div class="centre" id="logo-header">
|
||||||
<a href="http://playghostwriter.com" target="_blank" rel="noopener">
|
<a href="http://phantominkgame.com/" target="_blank" rel="noopener">
|
||||||
<img
|
<img
|
||||||
src="/assets/ghost_writer_logo.png"
|
src="/assets/phantom_ink_logo.png"
|
||||||
alt="Ghost Writer Logo"
|
alt="Phantom Ink Logo"
|
||||||
height="150px"
|
height="150px"
|
||||||
>
|
>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue