How can I share files (HTML templates) between App Engine modules?

61 views
Skip to first unread message

Dan Dubois

unread,
Oct 12, 2015, 3:02:35 PM10/12/15
to Google App Engine

Nick (Cloud Platform Support)

unread,
Oct 12, 2015, 7:08:32 PM10/12/15
to Google App Engine
Hey Dan,

Usually it's ill-advised to cross-post because this forum and stackoverflow serve different purposes. This forum is for more general discussion of the platform and services, while stack is for specific-issue technical support. Although, this question is somewhat general and actually is better suited to this forum than stackoverflow. 

In general, the two broad families of solutions are:

1. upload the shared file with both app bundles (useful for read-only, consistent files)
2. store the file in some kind of storage (Cloud Storage, Drive, even as a blob in Datastore or MySQL)

Dan Dubois

unread,
Oct 12, 2015, 8:09:45 PM10/12/15
to Google App Engine
Thanks Nick,

Glad my question found the right location in the end.

I thought I would reply here just for completeness. I ultimately wanted to know how I can avoid file duplication in my own local repo when sharing application files between modules. The answer on StackOverflow suggests simlinking directories between modules is the only way to go. As Nick suggests I could store my file data in Cloud Storage or the datastore but I want to avoid the complexities of that.

I'll accept the StackOverflow answer unless anyone has a better suggestion.

Best wishes,
Dan

Nick (Cloud Platform Support)

unread,
Oct 13, 2015, 12:02:40 PM10/13/15
to Google App Engine
Symlinking in your local will see the symlinks dereferenced when deploying, so it won't save upload bundle size, but it will mean that you don't have to worry about potential de-syncing of the file in local between the locations.
Reply all
Reply to author
Forward
0 new messages