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

Create new rendertron app engine instance to prerender atila pages for cheaper #82

Merged
merged 18 commits into from
Aug 13, 2019

Conversation

ademidun
Copy link
Owner

@ademidun ademidun commented Aug 10, 2019

  • We currently use rendertron to prerender Atila because it is good for SEO and social media link previews

  • Atila App Engine Costs for rendertron are very expensive ($90 month) so we are looking for alternatives
    closes Switch from Google App Engine for SEO serverside/pre rendering #79

  • Create an app engine instance atila-rendertron that has a minimum_instance of zero in order to save costs which we will use to prerender our application

  • Currently deployed on atila-7-staging.appspot.com, once I get home and can review the code on my macbook pro that we used to create the original rendertron instance on atila-7.appspot.com, then we will replace the atila-7.appspot instance with the new one.

Ignore Below, that was the old way

In the rendertron docs and this tutorial they mention that we can use the demo Rendertron /render function, though it's not recommended for production

A demo Rendertron service is available at https://render-tron.appspot.com/. It is not designed to be used as a production endpoint. You can use it, but there are no uptime guarantees.

…rendertron error;

My theory is that serviceworker might be some how causing CORS errors:

Got the following error in console.log:

 Access to manifest at 'https://atila-7-staging.firebaseapp.com/manifest.json' from origin 'https://render-tron.appspot.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
@ademidun ademidun changed the title Use Rendertron demo endpoint to prerender Atila pages Create new rendertron app engine instance to prerender atila pages for cheaper Aug 10, 2019
… instance has been deployed in atila-rendertron
@ademidun
Copy link
Owner Author

ademidun commented Aug 13, 2019

Closing this PR now. Once it has finished deploying in circleci.

  1. Check firebase functions cloud logs to make sure that the logs show: { renderUrl: 'https://atila-7.appspot.com/render' }

  2. Delete staging instance

@ademidun ademidun merged commit 7e26c68 into master Aug 13, 2019
@ademidun ademidun deleted the fix_rendertron_temp branch August 13, 2019 23:48
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.

Switch from Google App Engine for SEO serverside/pre rendering
1 participant