Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates Procfile.dev to use dev js and css build scripts #6200

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

alex-yi37
Copy link
Contributor

@alex-yi37 alex-yi37 commented Jan 29, 2025

What github issue is this PR for, if any?

N/A

What changed, and why?

After the PR to migrate from yarn to npm was merged, I noticed that running bin/dev locally no longer seemed to start the dev server for me and exited immediately. Also saw that a CI check started failing, and it seemed related.

I changed the scripts in Procfile.dev to make use of the dev versions for building js and css and this seemed to fix the issue. Still not entirely sure why the switch from yarn to npm mattered here. This is a bit out of my wheelhouse, so not sure if I missed anything important. Please let me know if anything seems off!

How is this tested? (please write tests!) 💖💪

Note: if you see a flake in your test build in github actions, please post in slack #casa "Flaky test: " :) 💪
Note: We love capybara tests! If you are writing both haml/js and ruby, please try to test your work with tests at every level including system tests like https://github.com/rubyforgood/casa/tree/main/spec/system

The extent of my testing here was to ensure that running bin/dev started the dev server successfully and watched for js and css assets being rebuilt. Also making sure that the previously failing CI step started passing.

I did try building the app with Docker locally as part of these instructions but it would hang at a certain step (docker compose build) so I just gave up on it for now.

Screenshots please :)

Run your local server and take a screenshot of your work! Try to include the URL of the page as well as the contents of the page.

Trying to run bin/dev before changes results exits and does not start the dev server locally

image

Trying to run bin/dev after changes starts the dev server successfully

image

Example PR with failing Docker CI step

image

Feelings gif (optional)

What gif best describes your feeling working on this issue? https://giphy.com/
How to embed:

![alt text](https://media.giphy.com/media/1nP7ThJFes5pgXKUNf/giphy.gif)

@alex-yi37 alex-yi37 marked this pull request as ready for review January 29, 2025 19:12
@alex-yi37 alex-yi37 changed the title updates Procfile.dev to use dev js and css build scripts after migrat… updates Procfile.dev to use dev js and css build scripts Jan 29, 2025
Copy link
Collaborator

@compwron compwron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wonderful! Thanks for the great PR explanation :)

@compwron compwron merged commit c9d519b into rubyforgood:main Jan 30, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants