donutmuncha
donutmuncha
RRailway
Created by mh1723 on 11/13/2023 in #✋|help
setting up discord bot with mongodb Atlas
No description
17 replies
RRailway
Created by mh1723 on 11/13/2023 in #✋|help
setting up discord bot with mongodb Atlas
the steps I went through are: - create a user with username/password access - make sure that "cloud environment" is selected - it should provide a string be sure to assign said user to your db. eg magic-db-user is assigned to magic-db
17 replies
RRailway
Created by mh1723 on 11/13/2023 in #✋|help
setting up discord bot with mongodb Atlas
I am able to connect to mongodb atlas no problem from my railway app. is your complete connection string like this?
mongodb+srv://<USER>:<PASSWORD>.<CLUSTER>.mongodb.net/<DATABASE>?retryWrites=true&w=majority
mongodb+srv://<USER>:<PASSWORD>.<CLUSTER>.mongodb.net/<DATABASE>?retryWrites=true&w=majority
17 replies
RRailway
Created by donutmuncha on 11/13/2023 in #✋|help
Force build via Railway CLI
I took your advice and removed all the complexity. Added the watch path back. (Not going to ask for CLI amends 🙂 ) Instead I amend the README with the last deployed date.
name: Payload update
on:
repository_dispatch:
types:
- payload_update

jobs:
update-deployment-time:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Update deployment time
run: |
# Define the date format
DATE_FORMAT="$(date -u +'%a %b %d %Y %H:%M:%S GMT+0000 (Coordinated Universal Time)')"

# Replace the line in the markdown file
sed -i "s/Last deployed:.*/Last deployed: $DATE_FORMAT/" apps/web/README.md

- name: Commit and push
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add apps/web/README.md
git commit -m "chore: Github Action - redeployed frontend"
git push
name: Payload update
on:
repository_dispatch:
types:
- payload_update

jobs:
update-deployment-time:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Update deployment time
run: |
# Define the date format
DATE_FORMAT="$(date -u +'%a %b %d %Y %H:%M:%S GMT+0000 (Coordinated Universal Time)')"

# Replace the line in the markdown file
sed -i "s/Last deployed:.*/Last deployed: $DATE_FORMAT/" apps/web/README.md

- name: Commit and push
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add apps/web/README.md
git commit -m "chore: Github Action - redeployed frontend"
git push
18 replies
RRailway
Created by donutmuncha on 11/13/2023 in #✋|help
Force build via Railway CLI
awesome, removing the watch for my frontend worked perfectly. Thanks!
18 replies
RRailway
Created by donutmuncha on 11/13/2023 in #✋|help
Force build via Railway CLI
I can always ask!
18 replies
RRailway
Created by donutmuncha on 11/13/2023 in #✋|help
Force build via Railway CLI
thanks for helping, as always Brody
18 replies
RRailway
Created by donutmuncha on 11/13/2023 in #✋|help
Force build via Railway CLI
I think the ability to override/force build would be a handy addition to the CLI. I'll create a ticket for it
18 replies
RRailway
Created by donutmuncha on 11/13/2023 in #✋|help
Force build via Railway CLI
I was thinking that I could move them all into github actions rather than rely opon Railway to trigger the builds. e.g - push to repo > github action (create custom watch) > railway up -e staging --service astro_frontend
18 replies
RRailway
Created by donutmuncha on 11/13/2023 in #✋|help
Force build via Railway CLI
How about if I remove the watch path?
18 replies
RRailway
Created by donutmuncha on 11/13/2023 in #✋|help
Force build via Railway CLI
No description
18 replies
RRailway
Created by donutmuncha on 11/13/2023 in #✋|help
Force build via Railway CLI
yes
18 replies
RRailway
Created by donutmuncha on 11/9/2023 in #✋|help
MongoDB - Unable to load data set in Compass
I literally turned myself into an IT Crowd meme
31 replies
RRailway
Created by donutmuncha on 11/9/2023 in #✋|help
MongoDB - Unable to load data set in Compass
I can't believe it was as simple as restarting. Thank you
31 replies
RRailway
Created by donutmuncha on 11/9/2023 in #✋|help
MongoDB - Unable to load data set in Compass
I assume any time I restart, the data will persist on the volume
31 replies
RRailway
Created by donutmuncha on 11/9/2023 in #✋|help
MongoDB - Unable to load data set in Compass
5GB volume according to mongo data
31 replies
RRailway
Created by donutmuncha on 11/9/2023 in #✋|help
MongoDB - Unable to load data set in Compass
31 replies
RRailway
Created by donutmuncha on 11/9/2023 in #✋|help
MongoDB - Unable to load data set in Compass
restarting seemed to have done the trick
31 replies
RRailway
Created by donutmuncha on 11/9/2023 in #✋|help
MongoDB - Unable to load data set in Compass
I am porting from MongoDB Atlas into Railway, I exported all the collections to JSON, so it's safe
31 replies
RRailway
Created by donutmuncha on 11/9/2023 in #✋|help
MongoDB - Unable to load data set in Compass
Last night, I added data, and could see it each time I connected via Compass. When I restarted Mongo just now and connected via Compass, it all disappeared. I couldn't see any data in the CMS, so this is why I raised this ticket. I'll add some data now via Compass and see if it appears in the CMS I'm not relying solely upon the Data tab in Railway, but it was a good way to confirm doubts
31 replies