-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create a Prod environment #1
Comments
@andytudhope questions:
|
|
That's gonna be tough. We'll see. |
This repo could be helpful in figuring out how to do this in Terraform: |
Scratch that, I'm getting auto-scaling for free by suing CloudPosse module, but the geographical spread will be harder. For now I'm deploying in eastern USA. |
As https://dap.ps/ is currently hosted on GitHub I will be not touching that unless we are ready. I will deploy the prod environment under https://prod.dap.ps/, later we can do a CNAME from |
Fuck... I used $ terraform_0.11 refresh
Error:
Terraform doesn't allow running any operations against a state
that was written by a future Terraform version. And now I'm fucked because cloudposse/terraform-aws-elastic-beanstalk-environment doesn't support Terraform So either I remove everything from AWS and re-create it, which is stupid, or I have to write a |
Opened an issue with Terraform about no confirmation prompt, but it is my fault non-the-less: |
ok, sorry to hear it isn't going well and still appreciate all the effort this is taking. |
Okay, there's hope, someone already made a basic |
Okay, I've created a auto-scalable prod environment available under https://prod.dap.ps/ in dc4151b. Next step is the MongoDB cluster, once that's up prod infra should be ready sans geo spread. @andytudhope are there different values for Prod for these variables?
I assume so? |
Looks like I found the issue with this error:
I SSHed into the EB host and checked if the file exists:
And it did not, so then I remembered that:
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-deploy.html And there's a
The correct build process for yarn instal
./node_modules/.bin/embark build testnet
eb init
git add --force src/embarkArtifacts
eb deploy --staged But that only got me a new error:
Because the
|
I have verified that the ElasticBeanstalk environment does scale with CPU load. |
I have finished deploying the prod MongoDB replication set(cluster) and verified it's working. I've updated the |
I fixed the absolute paths generated by Embark by hand(well, mostly with But when I tried submitting my Dapp I got back:
And here's the reason: |
I've prepared some fixes for the app itself: dap-ps/discover#25 And once I have some funds for the |
Email sending issues fixed in #9. |
Updated the prod configuration with Mainnet contract deployed by Andy: d344fef |
Okay, Apparently there is and environment variable named |
Brilliant, |
Also we are getting
No clue what that is about. |
Mixed content issue: #12 |
@andytudhope looks like you broke this application in You replaced: const wallet = require('./development/mnemonic') With: const wallet = require('./livenet/mnemonic') But there is no such thing as How is this supposed to work? |
@andytudhope also, why are you merging PRs like dap-ps/discover#28 without me reviewing them first? What's the point of making a PR if nobody is going to review it? You might as well commit directly to |
sorry, you're right. Will change that back. |
This is because there is a bug in Embark which means that you have to change the embarkjs.js file generated in |
Replacement of |
Mixed content issue #12 fixed in dap-ps/discover#7. |
Yet another issue that needed fixing: dap-ps/discover#9 |
There is one more thing I need to do.. Currently the certificate issues by AMC only handles the specific domain in question: infra-dapps/modules/aws-eb-env/cert.tf Lines 1 to 7 in d344fef
So I need to modify this to include dap.ps . Either as a SAN or make it the main domain and add the *.dap.ps subdomains as SANs.
I also have two options:
The first option would allow us to point |
Okay, I've re-created the Prod env with the certificate that includes the |
As we have prod up and running, can I close this @andytudhope ? I have the other 3 optional issues open. |
Yeah, just that there is an error on prod.dap.ps/metadata/all still and I'm not sure why... |
That was due to lack of |
We will need a proper prod environment for release of https://dap.ps/.
Things we will need:
Vital
Optional
This is enough for for a week if I have nothing else to do.
Especially with the scalability and geographical spread.
The text was updated successfully, but these errors were encountered: