joscas / phonegap-rails Goto Github PK
View Code? Open in Web Editor NEWExport a rails single page app as a Phonegap project
License: MIT License
Export a rails single page app as a Phonegap project
License: MIT License
Are any iOS features currently supported at all?
I have a simple rails-ember application (https://github.com/bahhudson/rails-ember-simple-posts) and I have added and initialized the rails-phonegap gem.
When I run any rake commands, they are always aborted. When running:
rake phonegap:rails:android:initall
I receive the following output:
Creating android project
creating project: ~/Workspace/phonegap-2.9.1/lib/android/bin/create phonegap/android/Myblog com.merxcore.rails-ember-simple-posts Myblog
An unexpected error occurred: ANDROID_BIN="${ANDROID_BIN:=$( which android )}" exited with 1
Deleting project...
Exporting android project
* javascript assets
rake aborted!
No such file or directory @ rb_sysopen - phonegap/android/Myblog/assets/www/js/application.js
/Users/bahudso/.rvm/gems/ruby-2.1.1/gems/phonegap-rails-0.0.12/lib/phonegap/rails/tasks/rails.rake:48:in `initialize'
/Users/bahudso/.rvm/gems/ruby-2.1.1/gems/phonegap-rails-0.0.12/lib/phonegap/rails/tasks/rails.rake:48:in `open'
/Users/bahudso/.rvm/gems/ruby-2.1.1/gems/phonegap-rails-0.0.12/lib/phonegap/rails/tasks/rails.rake:48:in `block (4 levels) in <top (required)>'
/Users/bahudso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
/Users/bahudso/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => phonegap:rails:android:initall => phonegap:rails:android:export
I take it something may be wrong with my phonegap_rails.yml config or my environment but I am not sure. I currently have the ADT folder at ~/Workspace/adt and the phonegap folder at ~/Workspace/phonegap-2.9.1
Hi Josep,
I've been trying to get my single page rails app working on phonegap and having trouble :( Any chance I could get your email to ask some questions as I see that you haven't updated this gem to rails 4 and the newer folder structure of phonegap.
I would just like to understand the general steps of what's necessary to do, and I can try implementing it myself. Here is what I've tried:
rake assets:precompile
to get the assets in the public/assets
directoryindex.html
file manually which sources those assets (haven't figured out how to automatically generate the file)Unfortunately, the above doesn't work :( Even before step 3, if I simply open the index.html
file, it doesn't work. However, if I go to localhost:3000, and let rails serve the same index.html file from the public directory, it does work (seems to me that angular doesn't like serving directly from a file, which also worries me since it feels like phonegap will do that too).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.