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

Remove customizations for old sd-workspace header. #4

Merged
merged 1 commit into from
Jun 3, 2021

Conversation

enisoc
Copy link
Contributor

@enisoc enisoc commented Jun 3, 2021

These changes to the app code are no longer necessary.

@enisoc enisoc requested a review from foxish June 3, 2021 14:33
@@ -23,13 +23,6 @@
<h1>Hot R.O.D.</h1>
<h4><em>Rides On Demand</em></h4>

<br />
<div>
Signadot Workspace: <input type="text" id="workspace" />
Copy link
Member

Choose a reason for hiding this comment

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

I think after this is run, it needs to generate code as well to take effect.

esc -pkg frontend -o ./services/frontend/gen_assets.go  -prefix ./services/frontend/web_assets ./services/frontend/web_assets

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I went ahead and uncommented that line in build.sh since it seems to be fast anyway. I also had to tweak the command, perhaps because of a new esc version?

@enisoc
Copy link
Contributor Author

enisoc commented Jun 3, 2021

I manually pushed an image and created a workspace for this: http://022q5u19bw3hu.preview.signadot.com/

isDir: true,
},
}

var _escDirs = map[string][]os.FileInfo{

".": {
"services/frontend/web_assets": {
Copy link
Member

Choose a reason for hiding this comment

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

This and the change on line 762 need to be reverted. This was why I didn't keep the esc command as-is in the build file. Not really sure why this changes even though we specify --prefix but never looked into it closely. Rest lgtm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems to work. Maybe this is just internal metadata that doesn't affect serving. Did you see any effects from this before?

These changes to the app code are no longer necessary.
@enisoc enisoc merged commit 2d5d7c0 into main Jun 3, 2021
@enisoc enisoc deleted the remove-old-header branch June 3, 2021 15:06
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