pandas
pandas
Explore posts from servers
CDCloudflare Developers
Created by pandas on 3/19/2024 in #general-help
Cloudflare pages with remix js vite could not determine executable to run
Hi, there is a bug with cloudflare pages and remix js vite when you set environment variables inside cloudflare dashboard you get following output
06:37:13.340 > build
06:37:13.340 > npx remix vite:build
06:37:13.340
06:37:14.051 npm ERR! could not determine executable to run
06:37:13.340 > build
06:37:13.340 > npx remix vite:build
06:37:13.340
06:37:14.051 npm ERR! could not determine executable to run
there was also an issue with
npx wrangler types
npx wrangler types
command but it was solved with installing
wrangler
wrangler
as dev depn. tried this
./node_modules/.bin/remix vite:build
./node_modules/.bin/remix vite:build
and
npx remix vite:build
npx remix vite:build
when environment variables are removed it works fine
2 replies
RRailway
Created by pandas on 11/8/2023 in #✋|help
Domain randomly stopped resolving after cloudflare outage
No description
7 replies
RRailway
Created by pandas on 11/3/2023 in #✋|help
Pricing and auto scaling
1) Does each service auto scale to maximum of 32 GB RAM / 32 vCPU per Service? 2) If I am using Pro plan and total usage using 8GB of ram and 4vCPU core, total cost will be $160 per month excluding network and volume cost?
8 replies
RRailway
Created by pandas on 11/3/2023 in #✋|help
Dockerized application on Railway (docker compose)
Below is example of django application using celery, redis and postgres db Railway has databases redis and postgres which are straight forward way to set it up But what about celery worker or any other extra workers, how to set them up? There is also some volumes
volumes:
postgres_data:
django_storage:
volumes:
postgres_data:
django_storage:
I read there will downtime during deployment as well because of volumes? Would be nice to clarify how it works and how to generally set more complex applications that require multiple docker services to run? Would I have each separate github repo just for each individual service such as celery? And how to make service talk to each other do we use internal railway network? Thanks
version: '3'

services:
db:
image: postgres:13
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- ./server/.env

redis:
image: redis:6

web:
build: .
command: ["./entrypoint.sh"]
volumes:
- .:/app
- django_storage:/app/django_storage
ports:
- "8000:8000"
depends_on:
- db
- redis
environment:
DEBUG: ${DEBUG:-'True'}

celery:
build: .
command: celery -A server worker -l info -n p80 --pool=threads --concurrency=100
volumes:
- .:/app
depends_on:
- db
- redis

nginx:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./certs:/etc/letsencrypt
- ./webroot:/var/www/certbot
depends_on:
- db
- redis
- web
- celery

certbot:
image: certbot/certbot
command: certbot --help
volumes:
- ./certs:/etc/letsencrypt
- ./webroot:/var/www/certbot
depends_on:
- db
- redis
- web
- celery
- nginx

volumes:
postgres_data:
django_storage:
version: '3'

services:
db:
image: postgres:13
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- ./server/.env

redis:
image: redis:6

web:
build: .
command: ["./entrypoint.sh"]
volumes:
- .:/app
- django_storage:/app/django_storage
ports:
- "8000:8000"
depends_on:
- db
- redis
environment:
DEBUG: ${DEBUG:-'True'}

celery:
build: .
command: celery -A server worker -l info -n p80 --pool=threads --concurrency=100
volumes:
- .:/app
depends_on:
- db
- redis

nginx:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./certs:/etc/letsencrypt
- ./webroot:/var/www/certbot
depends_on:
- db
- redis
- web
- celery

certbot:
image: certbot/certbot
command: certbot --help
volumes:
- ./certs:/etc/letsencrypt
- ./webroot:/var/www/certbot
depends_on:
- db
- redis
- web
- celery
- nginx

volumes:
postgres_data:
django_storage:
19 replies
RRailway
Created by pandas on 11/2/2023 in #✋|help
Domain Management CNAME TXT Records
Hi, Currently have CNAME host www value pointed to railway app Which works fine for www.example.com but example.com is dead end What is recommended way adding example.com (apex domain @) as well because if we add CNAME to apex domain @ TXT records won't resolve and it causes issues I've seen a solution with nginx and ALIAS record, what is recommended? Many thanks
18 replies