-
Notifications
You must be signed in to change notification settings - Fork 0
heroku #10
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
base: main
Are you sure you want to change the base?
heroku #10
Conversation
| "storybook": "start-storybook -p 6006", | ||
| "build-storybook": "build-storybook" | ||
| }, | ||
| "engines": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to remove it because otherwise deploy on heroku doesnt work, or is there another reason? 🤔😁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to ask you if thats really necessary cause heroku cannot execute 'npm please-use-yarn' command. I assume its kind of a fake thing? If we need it i will try to find another solution but it was quite hard to find any... Anyway heroku use yarn during the deployment because it detects the yarn lock file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me, we can delete it if it casues problems on the heroku. Maybe I will find another way to force use yarn instead of npm, or we just have to remember that we are using yarn 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heroku can use yarn instead of npm, so we can preserve those lines. As I remember the only thing you need to do is to replace npm run start:production with yarn start:production
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KonradSzwarc Yeah, you're right, now it works just fine :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, no, I said it too fast, it failed :P
| "storybook": "start-storybook -p 6006", | ||
| "build-storybook": "build-storybook" | ||
| }, | ||
| "engines": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heroku can use yarn instead of npm, so we can preserve those lines. As I remember the only thing you need to do is to replace npm run start:production with yarn start:production
package.json
Outdated
| "name": "coderscrew-app", | ||
| "version": "1.0.0", | ||
| "scripts": { | ||
| "predev": "docker-compose up -d", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if we should have this command.
- What if someone terminates the
devprocess and runs it again. Wouldn't Docker try to start the second time? - It's kind of asymmetric because Docker starts automatically but needs to be terminated manually.
I think it could be better if everyone needs to run Docker explicitly from the command line.
No description provided.