heroku

Heroku Local with PHP on Mac OS X

这一生的挚爱 提交于 2020-01-16 09:06:09
问题 Currently I just use additional terminal tabs to manually start worker and clock processes in addition to an always-on apache proxying to php-fpm. I tried heroku local when I started with heroku but its setup defeated me. Now I want to give it another try. I'm on High Sierra with homebrew php but have stuck with the mac os built in apache till now. It appears brew's apache may be a better choice but hopefully we'll find out if so in the following. I realise from the answer provided here (by

Getting error when i deploy vue app to heroku

感情迁移 提交于 2020-01-16 08:47:07
问题 I have a vuejs app which set up with vue cli, and i'm trying deploy my app to heroku. Here's my server : const express = require('express'); const port = process.env.PORT || 8080; const app = express(); app.use(express.static(__dirname + "/dist/")); app.get(/.*/ , function(req,res) { res.sendfile(__dirname + "/dist/index.html"); }); app.listen(port); console.log("Server started..."); I remove dist from gitignore, I aded a start point like "start": "node server.js" in package.json Here's what

Deploy a React app + Node server with Heroku

戏子无情 提交于 2020-01-16 08:08:12
问题 I want to deploy a project (React app + Node server), but I'm new to deployment, I wanted to know : do I need to have the React app in a Github repo and the Node server in another, or I can deploy all in one ? Currently, I have 1 Github repository with a folder "frontend" and an other "backend", I want to have my React app on -> nameofmyapp.herokuapp.com and the Node server on -> api-nameofmyapp.herokuapp.com, If someone got ideas... Thanks 回答1: Anything is possible, you just need to

Heroku deploy Error: Cannot find module - compilation

淺唱寂寞╮ 提交于 2020-01-16 05:30:13
问题 This is similar to other questions, but I'll explain what's different. Like the many others, I have an app that works fine on my own server, but when I push to Heroku, I get the following error: remote: > react-scripts build remote: remote: module.js:549 remote: throw err; remote: ^ remote: remote: Error: Cannot find module './error' remote: at Function.Module._resolveFilename (module.js:547:15) remote: at Function.Module._load (module.js:474:25) remote: at Module.require (module.js:596:17)

Problem pushing sqlite3 db to heroku: lib/taps/schema.rb:30:in `sqlite_config': undefined method `[]' for nil:NilClass (NoMethodError)

倾然丶 夕夏残阳落幕 提交于 2020-01-16 05:17:15
问题 I have a Sinatra DataMapper app hitting a sqlite3 database that I am attempting to deploy to Heroku. First pass, I included my database file in the git repo. This works, as in the app runs, but production data does not belong in the repository. It doesn't really work though because the database is read-only. I then removed the db file for source control and attempted a heroku db:push sqlite://db/my-app.db . This command yields the following stact trace: my-app/(master) ~ heroku db:push sqlite

SSL in Heroku with a custom domain

ⅰ亾dé卋堺 提交于 2020-01-16 03:11:12
问题 I'm using PointHQ as a DNS and hosting my domain on Heroku. On default, it looks like Heroku supports https (eg. https://yodel-site.herokuapp.com), but not when you go to my site with https://yodel.co - although it works with just http://. What do I need to do in order for SSL (https) to work on my custom domain in Heroku? Is it something to configure in my DNS (PointHQ), or do I need to pay heroku for the addon? Here's what my Heroku custom domains section looks like: 回答1: You will have to

Mac中安装VS Code并配置git, heroku步骤以及遇到的问题

牧云@^-^@ 提交于 2020-01-16 00:45:40
1.创建第一个VS Code项目 安装好VS Code, git, heroku以及heroku账号以后,在本地创建文件夹路径命名为项目名。 打开Visual Studio Code并通过单击左上角的“ Explorer”图标(看起来像两个文件)来打开目标文件夹,以展开左侧的“ Explorer”窗格。 您应该看到一个“打开文件夹”按钮-单击此按钮,然后选择到新创建的文件夹。 现在,您会在侧边栏中看到一个空的目标文件夹。 要在此文件夹中开始构建我们的应用,我们必须在Visual Studio Code的“集成终端”中发出一些命令。 要打开此窗口,请使用键盘快捷键(ctrl +`)或从顶部菜单中选择“查看”->“集成终端”。 键入命令npm init并输入以下信息: 按Enter键输入名称(使用默认值) 按Enter键获取版本(使用默认值) 按Enter键进行描述(使用默认值) 输入server.js作为入口点: 按Enter键以测试命令(使用默认值) 按Enter进入git仓库(使用默认值) 按Enter键输入关键字(使用默认值) 输入您自己的作者姓名: 按Enter键获取许可证:(使用默认值) 最后,按Enter接受您的输入,确定 这将在helloworld文件夹下创建一个package.json文件。 这将有助于我们稍后管理依赖关系,并且始终是创建node.js应用程序的第一步

Timeout when pushing to Heroku

╄→гoц情女王★ 提交于 2020-01-16 00:42:44
问题 Hi I'm getting compiler timeouts while pushing to heroku....I don't really understand why, since i had no changes on my gems and had previously pushed successfully to heroku.... Here is the log : -----> Heroku receiving push -----> Ruby/Rails app detected -----> Using Ruby version: ruby-1.9.3 -----> Installing dependencies using Bundler version 1.2.0.pre Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ Fetching gem metadata from https://rubygems.org/....

Failed to deploy to Heroku using Maven: Forbidden

落花浮王杯 提交于 2020-01-15 20:54:09
问题 I'm trying to deploy a jar with dependencies to Heroku, using the Heroku Maven plugin. I'm getting this error message: [ERROR] Failed to execute goal com.heroku.sdk:heroku-maven-plugin:0.4.4:deploy (default-cli) on project my-app: Failed to deploy application: Forbidden -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.heroku.sdk:heroku-maven-plugin:0.4.4:deploy (default-cli) on project my-app: Failed to deploy application at org.apache.maven

Trouble Accessing Remote Postgres DB on Heroku from Local Node.js Webapp

筅森魡賤 提交于 2020-01-15 18:50:58
问题 I struggled today to get my local node.js app to reach out to the db on Heroku instead of settling for a parallel db on my machine. Thanks to a post I tested and then stopped expecting process.env.DATABASE_URL to provide the URL and replaced it with the actual URL from heroku config along the lines of var connectionString = "postgres://thinga:thingb@ec2-23-21-119-36.compute-1.amazonaws.com:5432/thingc"; . But that didn't solve the problem completely. I found I also had to use var pg = require