-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
DASHBOARD_URL in code defaults to 3333 #25
Comments
@mlsad3 What was the main pain trying to set it up? I'd love to make it easier... |
Hi @agoldis , I think most of my problems are self-induced. Mostly around AWS :) |
That said, I'll need to send you a link to my updates just so you know what I have had to do. For instance, for Director, I have it running on Elastic Beanstalk and launched using concurrently (launching multiple nodejs on the same machine). This means a couple things:
|
@mlsad3 thanks for sharing the details! I've fixed the original issue you've reported 53e2f54 As for the rest, let me ask few more questions
Was it because all the processes were running on the same machine and all were using the same
Was it because cypress client does not support redirects?
👍🏻
So you want restricted access to the dashboard and tried to create some kind of wrapper that lets users in? I am wondering whether having CloudFormation / Terraform template with a single host / docker setup would make it easier for you to deploy the whole system. If you have some already existing setup, may be we can enhance it and share? |
My setup is pretty ugly at the moment, so I'm not sure how good it would be to enhance/share from. Sometime (not in the next few months unfortunately due to timeframes), I'd like to put the whole package into a single nodejs express process. As for your questions: I I'm not sure about Cypress client and redirects (I wasn't using redirects). Instead, my site was more like a proxy. Cypress client would make request, I would forward request to localhost:1234, and then respond back to the client with the resulting response. I think Cypress has issues when there are extra things after the host url. i.e. https://mywebsite.com versus https://mywebsite.com/dev/director. It just wouldn't run, but I didn't debug too deep into that. Final question: Yes, I wanted to restrict access to particular users. I already had user infrastructure in my existing website. I had to mess around a bit in both API and Dashboard to ensure they could handle the extra endpoint "/dev/dashboard" and "/dev/api". I also added express into the API project so that the authentication cookies were sent in requests. ...but I kept hitting some issues with the API pinging the wrong URL, and the Dashboard/API interaction also hitting something weird. Sorry, I got down deep and got lost, so I probably can't explain everything :) |
Hi @agoldis yes, it closes the issue. Thanks! |
Hi @agoldis , I've pushed my changes out to my fork. Definitely not anything you would want to pull in (since you've already made changes to help) but just to give you an idea. Of note, you can see how my .env files' urls have extra paths after them (instead of http://localhost:3000, it is http://localhost:3000/testing/cypress/graphql). This caused me to go down other routes to get Dashboard / API working with those. Take a look at "ASSET_PATH" to see another example. And "playground" for another. In the end, I wasn't able to fully get API/Dashboard to work with the extra paths in urls, but I left in some comments. ...just in case you're curious. Thanks for your work! |
@mlsad3 You made my day! Thanks for your generosity! I will take a look at the files! |
Hi, I'm really excited about saving $200-300/month as a startup with 0 customers a ton of end-to-end tests!
It was a little confusing getting this up and going since the DASHBOARD_URL for the director has it default to localhost:3333, when I think the dashboard is defaulting to port 4000. This should probably be updated.
The text was updated successfully, but these errors were encountered: