6
submitted 3 months ago by ciferecaNinjo@fedia.io to c/photon@lemdro.id

The readme talks about docker. I’m not a docker user. I did a git clone when I was on a decent connection. ATM I’m not on a decent connection. The releases page lacks file sizes. And MS Github conceals the size:

curl -LI 'https://github.com/Xyphyn/photon/archive/refs/tags/v1.31.2-fix.1.tar.gz' | grep -i 'content-length'

output:

content-length: 0

So instead of fetching the tarball of unknown size, I need to know how to build either the app or the tarball from the cloned repo. Is that documented anywhere?

top 3 comments
sorted by: hot top controversial new old
[-] Xylight@lemdro.id 3 points 3 months ago

Photon is not an "app" that you "install", and that tarball is just the source code, equivalent to git cloneing the main repo. The docker image is for a prebuilt server.

Here's what thearch said on how to run the server yourself:

You'll need node.js and npm for the minimum node server.

  • Run npm install to fetch the dependencies.
  • Build the app with ADAPTER=node npm run build
  • There should be a new directory, build.
  • To run the app, do node build/index.js. You can set the documented environment variables, and use PORT= to change the port.
[-] nate3d@lemmy.world 2 points 3 months ago* (last edited 3 months ago)

So docker is just a wrapper to provide the execution environment for photon in this case. You’ll either have to use docker as it’s really nothing more than installing the docker engine and that’s it, you just run commands provided by the photon dev.

Or

If you really don’t want to use docker for whatever reason, you’ll have to reverse engineer the actual code stack within the Dockerfile in the project that is used to build the image you’d otherwise just run. Again this is more more involved and the whole reason to use something like docker in the first place.

[-] thearch@sh.itjust.works 2 points 3 months ago* (last edited 3 months ago)

I can help with this, I'll PR this to the docs later.

You'll need node.js and npm for the minimum node server.

  1. Run npm install to fetch the dependencies.
  2. Build the app with ADAPTER=node npm run build
  3. There should be a new directory, build.
  4. To run the app, do node build/index.js. You can set the documented environment variables, and use PORT= to change the port.
this post was submitted on 22 Aug 2024
6 points (100.0% liked)

Photon

285 readers
1 users here now

Photon for Lemmy

A client for the fediverse designed to be intuitive, fast, and beautiful.

Share your themes, ask questions, report bugs, or check on the latest updates here!

You can contact the dev at @Xylight@lemdro.id.

Rules

  1. Posts must be related to Photon in any way
  2. Don't be mean
  3. If your post is a bug report, please preface the title with [solved] if it's been fixed.

founded 11 months ago
MODERATORS