1
我有一个在谷歌App Engine上运行的工作栏应用程序。谷歌应用程序引擎与Rails,静态资产不工作
什么都没有我的静态文件,js/css正在工作。
控制台显示错误:
Failed to load resource: the server responded with a status of 404 (OK)
https://automata-tech.appspot.com/assets/application-20dae9833e60c26566d09f41137460a88163a1fc6a579d0e5db204f6e3a6bc37.css
我预编译我的资产:
RAILS_ENV=production
我试图在我的app.yaml各种目录添加处理程序:
runtime: ruby
vm: true
entrypoint: bundle exec unicorn -p 8080 -E production config.ru
resources:
cpu: .5
memory_gb: 1.3
disk_size_gb: 10
automatic_scaling:
min_num_instances: 1
max_num_instances: 1
cool_down_period_sec: 60
cpu_utilization:
target_utilization: 0.8
handlers:
- url: /assets
static_dir: /public/assets
我已经尝试过各种static_dir,但得到:
Error: Not Found
The requested URL/was not found on this server.