mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-10-01 20:33:50 +00:00
ops: deploy app.logicsrc.com to dev2 on merge (#216)
* ops: deploy app.logicsrc.com to dev2 on merge Railway deployed this on push; dev2 does not by itself. The workflow ssh's to the box and runs /home/anthony/www/app.logicsrc.com/deploy-app.sh, which builds the image from this checkout and restarts the compose stack. Generated by cli-tools dev2/dev2-site scaffold. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * ops: stop committing the nixpacks build plan `railway up` writes .nixpacks/ into the working tree: a Dockerfile, a nixpkgs pin, and a build.sh that hard-codes the absolute path of the worktree it ran in plus a one-off image tag. None of it is reusable and no workflow reads it, so every branch that deploys regenerates it and conflicts with the last one -- which is exactly how this branch ended up CONFLICTING against master. Drop it and ignore it. * ops: drop the nixpacks build plan master picked up in #215 Same detritus, same stale absolute path (a worktree that no longer exists). Now ignored, so it will not come back. --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
f4780259fd
commit
587c073f72
5 changed files with 65 additions and 58 deletions
|
|
@ -1,36 +0,0 @@
|
|||
FROM ghcr.io/railwayapp/nixpacks:ubuntu-1745885067
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "-l", "-c"]
|
||||
WORKDIR /app/
|
||||
ARG PUBLIC_URL
|
||||
ENV PUBLIC_URL=$PUBLIC_URL
|
||||
|
||||
|
||||
COPY .nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix .nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix
|
||||
RUN nix-env -if .nixpacks/nixpkgs-ffeebf0acf3ae8b29f8c7049cd911b9636efd7e7.nix && nix-collect-garbage -d
|
||||
|
||||
|
||||
ARG CI NIXPACKS_METADATA NIXPACKS_NODE_VERSION NODE_ENV NPM_CONFIG_PRODUCTION
|
||||
ENV CI=$CI NIXPACKS_METADATA=$NIXPACKS_METADATA NIXPACKS_NODE_VERSION=$NIXPACKS_NODE_VERSION NODE_ENV=$NODE_ENV NPM_CONFIG_PRODUCTION=$NPM_CONFIG_PRODUCTION
|
||||
|
||||
# setup phase
|
||||
# noop
|
||||
|
||||
# install phase
|
||||
ENV NIXPACKS_PATH=/app/node_modules/.bin:$NIXPACKS_PATH
|
||||
COPY . /app/.
|
||||
RUN --mount=type=cache,id=myZsC0wNW9Q-/root/npm,target=/root/.npm npm ci
|
||||
|
||||
# build phase
|
||||
COPY . /app/.
|
||||
RUN --mount=type=cache,id=myZsC0wNW9Q-apps/logicsrc-web/next/cache,target=/app/apps/logicsrc-web/.next/cache --mount=type=cache,id=myZsC0wNW9Q-node_modules/cache,target=/app/node_modules/.cache npm run build
|
||||
|
||||
|
||||
RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile
|
||||
|
||||
|
||||
# start
|
||||
COPY . /app
|
||||
|
||||
CMD ["npm run start"]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue