Comments (8)
Okay, I fixed the issue where I could not connect. I'm new to using Docker. To those who also couldn't connect, you have to change your hosts
file to include the following strings:
192.168.99.100 app.saas.localhost
192.168.99.100 api.saas.localhost
This got me to the login page, and I'm not sure if that means that at that point there's still a problem. Will close the issue if I manage to get past my other config woes.
from saas.
@Moai- You may want to ask @pnmcosta about Docker config. But I am not sure if he has time to reply.
from saas.
Hi @Moai-, please try and run it again, the script https://github.com/async-labs/saas/blob/master/mongo-user.sh sometimes fails to execute on the first time.
from saas.
Still working on this, pls don't close the issue yet. When I start
everything after the initial yarn stage
, both saas-mongoexp and saas-mongo close with an error. After I re-run yarn stage:start
, the two containers stay open, but fail to create the user.
I then decided to try and run the script manually. I don't know where it's supposed to run, so I used the printenv
command to see which container had environment variables that the script referred to. That turned out to be saas-mongo. I put mongo-user.sh inside the saas-mongo container and ran bash mongo-user.sh
in it. I received the following printout:
# bash mongo-user.sh
mongo-user.sh: line 8: _js_escape: command not found
mongo-user.sh: line 8: _js_escape: command not found
mongo-user.sh: line 8: _js_escape: command not found
mongo-user.sh: line 8: _js_escape: command not found
mongo-user.sh: line 8: saas: command not found
Please advise as to which steps to take next.
from saas.
It is worth noting that I am not using Docker, but Docker Toolbox. Could this be the issue? I'm not too stoked about buying Windows Professional...
from saas.
Possibly since it's legacy software, see https://docs.docker.com/toolbox/toolbox_install_windows/
But also purge all the images you have for mongo, perhaps the container is not being created with the version the bash expects.
Do note that this was done a while ago, and may require some tweaking if your not using the exact versions of Docker.
from saas.
I ended up installing Windows Pro and Docker Desktop. The problem with the admin not being created went away; that part seems to be working now.
However, now I once again can't access http://app.saas.localhost:3000/login
from any browser, and in the console where I run yarn stage:start
, the last message I see is [ wait ] compiling. . .
, but it never goes away. I removed my records from the hosts file, so I don't think that should be affecting it. Do you know what I could be missing?
from saas.
Ugh, I'm not sure why, but Docker is refusing to properly create network aliases for me. My hosts file now contains the following:
172.22.0.5 app.saas.localhost
172.22.0.5 api.saas.localhost
and it kind of works. I also had to use the solution outlined here (docker/for-win#221 (comment)). Okay... at this point, I am able to see the login screen, although it seems the API is still unreachable, because I cannot sign in either with gmail or my email. Regardless, my original issue was solved (the inability to create a user) by updating to DockerCE and Windows Professional. I'll continue bashing my head against this... it'll solve me tons of time if it works.
from saas.
Related Issues (20)
- NProgress code does not work as shown HOT 3
- [chapter 3] Grammar issues HOT 1
- [chapter 3] Library issues HOT 1
- [chapter 4] slugify test fails to work because of unsupported mongo options HOT 1
- [chapter 4] Incorrect sentence HOT 1
- tsconfig.json requires "tsBuildInfoFile" setting HOT 2
- [chapter 6] styleLoginButton is not defined HOT 1
- One-time payments for "credits" HOT 1
- .. HOT 1
- Passwordless Package should in no way be used anymore
- Chapter 9: AWS Lambda Serverless Deployment issue (over size) HOT 1
- December 2022 / January 2023 update (done)
- Chapter 3 End - Server Error 426 HOT 2
- Chapter 3 End - Next/Express server not starting HOT 2
- Should we support the Ukrainian government or the Ukrainian people?
- What could cause the app to be so laggy? HOT 1
- November / December 2023 update (DONE)
- Docker compose not working HOT 2
- 4-begin avatar upload (the bucket does not accept acls) HOT 2
- sourceMap is set to false in tsconfig.json (chapter 1) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from saas.