SHAKA PAKA
SHAKA PAKA
Explore posts from servers
RRailway
Created by SHAKA PAKA on 9/24/2024 in #✋|help
deploy a specific commit
UI would be really nice , for example if I have only phone on the go
9 replies
RRailway
Created by SHAKA PAKA on 9/24/2024 in #✋|help
deploy a specific commit
Would be nice to have an UI for that actually I miss it from render, example use case would be when SMTH is broken and I wanna rollback to some old commit, I can't see it in railway deploy history
9 replies
RRailway
Created by SHAKA PAKA on 9/24/2024 in #✋|help
deploy a specific commit
N\A
9 replies
TTCTheo's Typesafe Cult
Created by SHAKA PAKA on 7/24/2023 in #questions
Sorting imports
What cons and pros, maybe in your experience you rated them and can say what is better in terms of ease of use or configurations.
4 replies
RRailway
Created by SHAKA PAKA on 7/9/2023 in #✋|help
CLI logs
24 replies
RRailway
Created by SHAKA PAKA on 7/9/2023 in #✋|help
CLI logs
24 replies
RRailway
Created by SHAKA PAKA on 7/9/2023 in #✋|help
CLI logs
N/A
24 replies
RRailway
Created by SHAKA PAKA on 7/9/2023 in #✋|help
Procfile over Dockerfile
I guess creating railway.json in repo root and setting up buildpack to nixpacks may also work?
10 replies
RRailway
Created by SHAKA PAKA on 7/9/2023 in #✋|help
Procfile over Dockerfile
thanks
10 replies
RRailway
Created by SHAKA PAKA on 7/9/2023 in #✋|help
Procfile over Dockerfile
b02e81da-b468-49d0-8ac2-3adb2060c0fc
10 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
thanks
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
is it valid syntax? looks strange
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
In terms of code I use poetry, and I have main.py in the project root that run something like this:
import schedule
import time

def job():
print("I'm working...")

schedule.every(10).seconds.do(job)
schedule.every(10).minutes.do(job)
schedule.every().hour.do(job)
schedule.every().day.at("10:30").do(job)
schedule.every(5).to(10).minutes.do(job)
schedule.every().monday.do(job)
schedule.every().wednesday.at("13:15").do(job)
schedule.every().day.at("12:42", "Europe/Amsterdam").do(job)
schedule.every().minute.at(":17").do(job)

def job_with_argument(name):
print(f"I am {name}")

schedule.every(10).seconds.do(job_with_argument, name="Peter")

while True:
schedule.run_pending()
time.sleep(1)
import schedule
import time

def job():
print("I'm working...")

schedule.every(10).seconds.do(job)
schedule.every(10).minutes.do(job)
schedule.every().hour.do(job)
schedule.every().day.at("10:30").do(job)
schedule.every(5).to(10).minutes.do(job)
schedule.every().monday.do(job)
schedule.every().wednesday.at("13:15").do(job)
schedule.every().day.at("12:42", "Europe/Amsterdam").do(job)
schedule.every().minute.at(":17").do(job)

def job_with_argument(name):
print(f"I am {name}")

schedule.every(10).seconds.do(job_with_argument, name="Peter")

while True:
schedule.run_pending()
time.sleep(1)
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
clock: python main.py
clock: python main.py
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
But what to specify in Procfile then?
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
Yep I did it using schedule module
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
.
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
So what would be correct to specify in my case?
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
Here: https://docs.railway.app/deploy/builds#procfiles I found info about "web:", but it's not web in my case and I can't find info about other options
20 replies
RRailway
Created by SHAKA PAKA on 7/8/2023 in #✋|help
Python Cron App (clock process) Procfile help
Okay, but I deployed with this Procfile and everything work. I guess "clock:" just does nothing in my case? Will be the same if you write web: python main.py And how actually "python main.py" works if it's Poetry project or does it run it in the poetry shell? And what does it mean in Procfile web:, clock:, etc., I just can see that my app is called "clock" in railway. And in general, does it make sense to write something in the Procfile if I have a poetry application that is using "schedule" module in main.py in root? I'm new to deployments so sorry if these will seem like odd questions.
20 replies