Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I have built a basic CRM app to learn Ember. The app uses a Rails back end; and Ember and Rails communicate with a JSON api. Feel free to check out the source code on my GitHub. The app is hosted here.
The app works great in my development environment, and deploys to Heroku with no issues whatsoever.
However, when I navigate to the apps URL I see a blank page. Further inspection using Chrome's dev tools tells me that none of my javascript files were sent from Heroku to my browser. What gives?
The solution was to add the rails_12factor gem to my Gemfile. It looks like for any Rails/Ember app to work correctly on Heroku, this gem is required.
As per Heroku:
Heroku integration has previously relied on using the Rails plugin
system, which has been removed from Rails 4. To enable features such
as static asset serving and logging on Heroku please add
rails_12factor gem to your Gemfile.
Related
I am looking for an open source web analytic for my Rails 4.2 app, so after some research I found that piwik fit my needs. can I use "piwik" with postgresql ? it seems that they only support mysql but I am not sure if it still true at this moment!
also I've found a post about how to integrate it within Rails here but they use piwik_analytics which is a Gem for Ruby on Rails 3.x and may not work with 4.2 !
All the information I've found are a little outdated and I am not sure if there is a way to make it work with my current requirements. any help please ?
Piwik supports only MySQL, that's true
You don't need any gem because Piwik just needs to load some Javascript that needs to be embedded into your layout/views. The Rails app doesn't directly interact with it, only your visitors' browser. Which also means that it shouldn't matter whether it supports Postgres because it will most likely run on another machine as your Rails app.
Edit:
Regarding the gem you mentioned: I looked at it, too, when adding Piwik analytics to my app, but in the end went with writing the few required lines of JS myself.
I want to customize spree. I have downloaded the source files and modified them. Then I ran install.rb which built and installed gems. The question is: can I see the result of the development without gems building, which takes too much time? I'm newbie to RoR.
Customisations to spree are, in almost all cases, better made in your application rather than by modifying spree's source files. The spree developer docs explain how to do so (see in particular the customisation section):
http://guides.spreecommerce.com/developer/
This question already has answers here:
Portable Ruby on Rails environment
(6 answers)
Closed 7 years ago.
Is there any way to run a RoR app as a 'portbale app'?
For instance, can you put an app including the ruby on rails stack, web server et all, on a stick and then just run it on a windows machine? Without installing?
There was project called Instant Rails that provided this more or less, but it's not maintained. (http://rubyforge.org/projects/instantrails/)
Also, there is RubyStack from Bitnami (http://bitnami.org/stack/rubystack#nativeInstaller) but it needs to be installed (I can go with that, but rather not).
So, the question is, can Ruby on Rails, including a specific app, be made to run on any computer (well, let's start with Win) from a stick, CD or DVD, without having to install anything first?
I think this is what you are looking for:
http://www.erikveen.dds.nl/distributingrubyapplications/rails.html
This tutorial walks you thru the entire process of creating a self-containing windows app that bundles your rails application inside it.
I've been building my first site using Rails, and I want to get it live. Up to now I've only ever put a site live by just dropping all the files onto my VPS via FTP, and I know that's not how it works with a Rails app.
What I don't know is where to even begin with making sure Rails is installed on my VPS (it's Linux based, I bought a package from Webfusion), and then how to deploy it and get it all running properly. My VPS has Plesk 10 installed on it, and from what I've read I need to install Rails alongside Plesk? I may have the wrong end of the stick, so don't hold back if I'm saying stupid things.
I realise this is a really green question to ask, but I've scoured forums looking for a solution I can understand and come up with nothing, so hoping someone here can help.
Thanks in advance!
I've never used a control panel like Plesk but I do have a VPS at linode.com. To get my rails sites up and running I got help from a smashingmagazine blog post and pro railscast episode. The railscast episode is not free but it has great info.
There are a lot of details with each step of getting a rails web server running on a VPS so please look at the blog or railscast video. But a high level overview of the steps is:
install rvm
install ruby and ruby gems
install rails
install a rails web server (a common option is passenger and nginx)
install a database (postgres is a common option)
capistrano for deployment
I wrote an ebook an this topic. After explaining how to set up a server from scratch it focuses on how to deploy an application manually, helping you to understand how this process works under the hood (I left automation out intentionally).
It covers a nginx/Unicorn/MySQL/rbenv setup. If you think that's something for you, you can get it here (it's free for people on my mailing list).
I recently discovered that Heroku now allows PHP which means that a wordpress blog can be hosted on it. I also found this project template: https://github.com/mhoofman/wordpress-heroku
I have a ruby on rails app which is to be hosted on heroku with a domain www.mysite.com, and in that app, i need a way for www.mysite.com/blog to show the wordpress blog.
Can someone help me out, with details on how I can do this?
Whilst I've not used the new PHP platform I don't think what you're asking for is going to be possible.
When you deploy an application to Heroku it detects the type of application during the push process and sets up the application accordingly, Heroku use Apache to host PHP as you can see from the output in this post http://tjstein.com/2011/09/running-wordpress-on-heroku-and-amazon-rds/ - there's not been any mention of mixing platforms in a single application yet so would imagine that it's not supported.
The nearest you'd get is hosting your site and your blog in two seperate applications with the blog on blog.mysite.com and then put a redirect on www.mysite.com/blog to the blog.mysite.com url.
Im Still working on this
the closest to getting a solution is using the reverse proxy gem
see the answer here:
How can I use a subdirectory instead of a subdomain?