Open GoogleCodeExporter opened 8 years ago
Same problem has occurred in my environment, but now fixed.
my environment is like this...
- mac os x 10.9.5
- result of command 'gcloud info'
Google Cloud SDK [0.9.87]
Platform: [Mac OS X, x86_64]
Python Version: [2.7.5 (default, Mar 9 2014, 22:15:05) [GCC 4.2.1 Compatible
Apple LLVM 5.0 (clang-500.0.68)]]
Python Location: [/usr/bin/python]
Site Packages: [Disabled]
Installation Root: [/Applications/google-cloud-sdk]
Installed Components:
core: [2015.11.18]
app-engine-python: [1.9.28]
core-nix: [2015.11.16]
app-engine-php: [ ]
app-engine-java: [1.9.28]
gcloud: []
gsutil-nix: [4.15]
app-engine-python-extras: [1.9.21]
gsutil: [4.15]
bq: [2.0.18]
app-engine-php-darwin: [2015.11.16]
app: []
bq-nix: [2.0.18]
in my case, maybe the main reason is total file size of my application,
including many node modules and bower components.
(and my lack of skill to treat docker and knowledge of GAE......orz...)
this is how the problem is fixed.
1. make a new directory only for go files to be built and asset files to be
published.
2. move all go files and asset files referred by my app to the new directory.
(IMPORTANT! : excluding node modules and bower components.)
3. also move app.yaml and index.yaml in root directory to the new directory.
4. fixed some paths in code to apply new directory settings. (if necessary)
5. change working directory to the new dir.
6. run develop server for test with command "dev_appserver.py ./app.yaml" -> ok!
7. in same dir, just run "aedeploy gcloud preview app deploy app.yaml
--promote" that's all!
= directory composition sample =
before :
.
├── Gruntfile.js
├── app.yaml
├── index.yaml
├── main.go
├── public (for assets)
├── tpl
├── batch
│ └── ***.sh
├── bower.json
├── bower_components
│ └── ****
├── node_modules
│ └── ****
├── package.json
└── src
├── img
├── js
└── scss
after :
.
├── Gruntfile.js
├── app
│ ├── app.yaml
│ ├── index.yaml
│ ├── main.go
│ ├── public (for assets)
│ └── tpl
├── batch
│ └── ***.sh
├── bower.json
├── bower_components
│ └── ****
├── node_modules
│ └── ****
├── package.json
└── src
├── img
├── js
└── scss
i hope this would be helpful info in some aspects.
Original comment by keep.nao...@gmail.com
on 23 Nov 2015 at 5:52
I'm glad yours is now fixed. Mine is working now after several SDK updates and
various changes in my app.yaml files (basically starting from scratch, adding
bits in as I needed them)
Thanks.
Original comment by bugahdug
on 24 Nov 2015 at 9:23
Thanks for reporting this. We're working on a fix.
The recommended workaround right now is to add 'node_modules' to the
'skip_files' clause of app.yaml, as described here:
https://cloud.google.com/appengine/docs/python/config/appconfig?hl=en#Python_app
_yaml_Skipping_files
It'll look something like:
skip_files:
- ^(.*/)?#.*#$
- ^(.*/)?.*~$
- ^(.*/)?.*\.py[co]$
- ^(.*/)?.*/RCS/.*$
- ^(.*/)?\..*$
- ^node_modules/.*$
Original comment by z...@google.com
on 24 Nov 2015 at 11:38
Original issue reported on code.google.com by
bugahdug
on 21 Oct 2015 at 9:36