Commit Graph

18 Commits

Author SHA1 Message Date
Christian Bundy a5d5e446c7 Refactor Docker example
Problem: The Docker example was using Alpine with the Tini dependency
and some neat custom stuff, but it wasn't super clear to understand
everything that was going on. It was also slow because lots of stuff was
compiling from source.

Solution: Replace neat custom stuff with boring defaults for clarity and
much faster builds.
2020-05-10 13:52:47 -07:00
Justin Abrahms 84b2abc123
Fix issue w/ mkdirp race condition
Previously you would get this error due to imperfect path creation

```
node contrib/install-systemd-service.js
fs.js:114
    throw err;
    ^

Error: ENOENT: no such file or directory, copyfile '/home/justin/src/github.com/fraction/oasis/contrib/oasis.service' -> '/home/justin/.config/systemd/user/oasis.service'
    at Object.copyFileSync (fs.js:1728:3)
    at Object.<anonymous> (/home/justin/src/github.com/fraction/oasis/contrib/install-systemd-service.js:27:6)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
```
2020-03-15 13:57:35 -07:00
Christian Bundy b34b04c2c2 Experiment with common-good module 2020-01-21 16:22:19 -08:00
Stephen Solka c1003639d0 fix docker file now that server.js is gone 2020-01-11 22:46:57 +00:00
Christian Bundy 740d51e1c7
Merge branch 'master' into port-systemctl-install 2020-01-05 17:58:56 -08:00
Christian Bundy e4f762ea04 Change systemd unit to use `default.target`
I was having a problem where I'd start my computer but the script wasn't
restarting audomatically, and after some searching I found this:

https://github.com/systemd/systemd/issues/2690#issuecomment-186973730

It looks like we should be using `default.target` instead of
`multi-user.target`.
2020-01-05 14:56:08 -08:00
Christian Bundy 891f44132d Fix execSync which accepts a string, not an array 2020-01-04 08:13:17 -08:00
Christian Bundy 5106c12a66 Change to automatically enable, start, and open systemd service 2020-01-03 21:39:19 -08:00
Christian Bundy 48cac575e7 Add install-systemd-service.js 2020-01-03 21:06:08 -08:00
Christian Bundy 280bf8df70 Add overwrite warning to systemd install 2020-01-03 15:27:20 -08:00
Christian Bundy f26a148244 Replace yarn.lock with package-lock.json 2020-01-03 15:19:35 -08:00
Christian Bundy 64154f2eed Change to organize install docs 2020-01-03 15:04:16 -08:00
Jonathan Dahan 6e3aed336c explain why we wrote the systemd service file 2020-01-03 15:12:33 -05:00
Jonathan Dahan 7af34f6b4e copy script no matter what dir the script is in 2020-01-03 15:09:45 -05:00
Jonathan Dahan 7ec96eda60 fix spacing in install script 2020-01-03 15:07:29 -05:00
Jonathan Dahan 8ce7d76df7 Create systemd service install script, fix service
This will check if you have have systemd installed,
copy the service file to your user directory,
and instruct the user how to enable it on login.
2020-01-03 15:03:21 -05:00
Jonathan Dahan 3e764e6d4d Remove unicorn requirement for systemd service 2020-01-03 12:23:58 -05:00
Christian Bundy ac4b95006d
Add systemd unit service file 2019-12-10 17:37:20 -08:00