heroku

Problems with rails server

点点圈 提交于 2019-12-25 02:28:06
问题 I am just getting started with ruby on rails and heroku. I am following the getting started guid on herokus website but have ran into a problem. I have logged into heroku, created an app as such rails new myapp --database=postgresql and then created a controller rails generate controller welcome index in the app/views/welcome/index.html.erb I just created a header saying hello world. When I start a local server and go to it, I get could not connect to server: No such file or directory Is the

Are different Heroku installations conflicting?

人盡茶涼 提交于 2019-12-25 02:27:15
问题 I have spent many hours trying to understand the implications of local installation vs global (root?) installation, but couldn't grasp enough to even formulate a question. This issue (below) with Heroku is a part of that puzzle. Heroku had been installed-and worked with some simple rails apps. But out of the blue, I began to get an error message that I should install Heroku CLI. Thinking perhaps I had messed things up, I went ahead and used Brew to install Heroku this time ( brew install

I can't deploy an Angular app to heroku

末鹿安然 提交于 2019-12-25 02:15:51
问题 I am trying to deploy my angular 6 app on Heroku, After building the project and following all the steps of deploy, I get this result on heroku: and th Heroku logs is : when testing the deploy address, we get this result: Your help is highly appreciated 回答1: You will have to add wildcard get route in server.js as: app.use(express.static(__dirname + '/dist')); app.get('/*', function(req, res) { res.sendFile(path.join(__dirname + '/dist/index.html')); }); Solution 2 add one index.php file in

Retrieve Heroku App IP Address for Google Cloud Messaging

↘锁芯ラ 提交于 2019-12-25 01:59:45
问题 I am attempting to integrate Google Cloud Messaging with my Heroku Apache PHP Server so as to allow for push notification to sync app data with the server as new data arises. However, the present step in GCM requires the servers (Heroku App's) IP address to integrate with Google Cloud Messaging. In the Heroku developers console there does not appear any direct way to access the apps IP. How can I access the Heroku App's IP address? 回答1: I implemented GCM on heroku (but with python) and there

what is the meaning of the pg_dump and pg_restore errors

断了今生、忘了曾经 提交于 2019-12-25 01:56:01
问题 While I trying to upload database to the heroku, I hav eget this errors env: pg_dump: no such file or directory and env: pg_restore no such file and directory . What is the meaning of the this errors ? How can I fix these errors to load database to the heroku ? 回答1: Are you using the :sql dump_format instead of schema.rb? If so, see your solution here: Error when doing rake db:migrate on Heroku 回答2: I just encountered the same errors using pg_transfer. Turns out that the postgresql client

MongoCollection::aggregate() is undefined in Heroku PHP using MongoHQ

扶醉桌前 提交于 2019-12-25 01:50:02
问题 I'm getting the following error when using MongoDB's aggregate() function in a PHP code. This code perfectly works on my local setup which is running MongoDB 2.2.3 PHP Fatal error: Call to undefined method MongoCollection::aggregate() in /app/www/page.php on line 52, referer: http://referrer.url Code foreach($cats as $key=>$val){ $cats2[$val['lable']] = $myCollection->aggregate( array( array('$match' => array('user_id' => $user_id )), array('$unwind' =>"\$data"), array('$match' => array('data

Rails 3.1.1 deploy to Heroku failing

送分小仙女□ 提交于 2019-12-25 01:48:24
问题 After upgrading my Rails 3.0.9 app to 3.1.1, I'm getting the following bundler error when pushing to Heroku-cedar stack: -----> Heroku receiving push -----> Ruby/Rails app detected -----> Installing dependencies using Bundler version 1.1.rc Running: bundle install --without development:test --path vendor/bundle Updating git://github.com/sferik/rails_admin.git Fetching gem metadata from http://rubygems.org/........ Bundler could not find compatible versions for gem "rails": In Gemfile: rails

APN-Node: Error when loading PEM file

喜欢而已 提交于 2019-12-25 01:44:21
问题 I am trying to get apn-node to push to my devices. The server is hosted on Heroku, so I do not want to commit the file. Also, I do not want to fetch it from a remote server but instead put it in an environment variable. I already tried the following (source): I created and downloaded the certificate from Apple and now have it in my Keychain. I exported it as a *.p12 file and converted it with openssl pkcs12 -in dev.p12 -out dev.pem -nodes into a *.pem file. To set the environment variable, I

My CSS is loading differently between development and production environments

我只是一个虾纸丫 提交于 2019-12-25 01:43:53
问题 I can not quite figure out why my Rails app is displaying differently between production and development environments. I have confirmed that the same CSS files are being loaded between my local host and heroku app. There are several subtle differences. Containers aren't showing up the same size, text is showing up bigger than it should, weird things like that. I am not sure what is causing the differences. This is an example of inspecting the same container in the two different environments:

Root domain is not working properly

偶尔善良 提交于 2019-12-25 01:36:26
问题 I setup Zerigo DNS addon at my Heroku app using Heroku instructions for adding a custom domain. It works fine when you open www.spotty.rs. I also added spotty.rs as a domain in Heroku panel, and added a REDIRECT record at Zerigo (redirection to www.spotty.rs). When I type spotty.rs in browser sometimes it redirects me to www.spotty.rs and sometimes I got Application error. In console, heroku log command displays H70 error which states that DNS records are not set correctly. Any idea why is