-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[FIX] frontend commands updated to start with 'yarn' #8083
Conversation
Good feedback thanks for taking the time to contribute! Also in backend commands, would you mind adding something like this? MigrationsFor objects in Core/Metadata schemas (TypeORM)
For Workspace objects (TwentyORM)There are no migrations files, migration are generated automatically for each workspace, stored in the database, and applied with this command
Note for you / not to be added: yes we use yarn for this one because it's used in the prod environment where there are no dev dependencies / no npx Thanks a lot! |
Sure would absolutely do that. Also, there is a problem in windows wsl local setup that doesn't reflects the code changes while working on them. I am working on that will create a PR here once that solved. As |
Thank you @Hitarthsheth07! |
Heyy @FelixMalfait Do you think we should add a note/step in windows(WSL) setup that you have to clone when inside wsl and in the /home directory (adding the repo in other dir may give error while installing node modules). I cloned the project on windows and setup redis, postgres on linux. It still works but takes 10-15 mims just to boot up and updates in code are not reflected. The command to initiate postgres DB: psql postgres -c "CREATE DATABASE "default";" -c "CREATE DATABASE test;" -c "CREATE USER twenty PASSWORD 'twenty';" -c "ALTER ROLE twenty superuser;" You need to run this as a 'postgres' user sudo -u postgres psql -c "CREATE DATABASE "default";" -c "CREATE DATABASE test;" -c "CREATE USER twenty PASSWORD 'twenty';" -c "ALTER ROLE twenty superuser; Or else it gives error in WSL. |
@Hitarthsheth07 yes that makes sense, please also add it to the Linux tab. Thanks! Sorry for the slow loading time, not sure we can fix that easily. We are using Mac in the core team and it boots in a few seconds :/ |
I would actually recommend the following format: For instance: |
Which command should be changed to this format. Are you referring to yarn command:prod workspace:sync-metadata -f So as per your given format it would be |
Closing this one since you opened #8161 (ideally you can stay on the same PR, no need to open a new one thanks!) |
FIX #8082