With help of the article I'm trying to deploy Go-lang app to heroku. The problem is I get an error while deploying
-----> Fetching custom git buildpack... done
-----> Go app detected
-----> Installing go1.4... done
Tired of waiting for bzr and hg?
Try github.com/kr/godep for faster deploys.
Installing Virtualenv... done
Installing Mercurial... done
Installing Bazaar... done
-----> Running: go get -tags heroku ./...
go install: no install location for directory /tmp/build_2c4fa2d4b9d0408123831030713fa930/.heroku/g/src outside GOPATH
! Push rejected, failed to compile Go app
What did I miss? Thanks
To fix it you should get Godep
go get github.com/kr/godep
export PATH=$PATH:$GOPATH/bin
after that in project directory
godep save
more information in the artice
Heroku now officially supports Go and has a Getting Started guide and other docs.
Related
Trying to run pod install in a new React Native project and getting this error. Ruby is installed with brew
I have installed chruby and ruby-install, which I have then used to install ruby-2.7.5 cocopods, ffi and bundler. When trying bundler to install I get this error:
warn Multiple Podfiles were found: ios/Podfile,vendor/bundle/ruby/2.7.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via "project.ios.sourceDir". You can learn more about it here: https://github.com/react-native-community/cli/blob/master/docs/configuration.md
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
fatal: not a git repository (or any of the parent directories): .git
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
[Codegen] Found FBReactNativeSpec
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
Fetching podspec for `boost` from `../node_modules/react-native/third-party-podspecs/boost.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Fetching podspec for `hermes-engine` from `../node_modules/react-native/sdks/hermes/hermes-engine.podspec`
[!] Couldn't determine repo type for URL: `https://cdn.cocoapods.org/`: Permission bits for '/Users/macbook/.netrc' should be 0600, but are 644
So I put out a bounty on this because I couldn't figure it out for ages. Until I did. (Hopefully this fix works for everyone else)
First when I ran xcode-select -p it was returning /Library/Developer/CommandLineTools
However this looked odd as another an answer here seemed to suggest that maybe this was causing an issue. It ended up that I just hadn't set my CLI tools correctly as described in the react native docs. Since it only had one option in the dropdown I assumed that the CLI tools were already set. However when I went back and specifically clicked on the one option, it made changes to my system.
Now running xcode-select -p returns /Application/Xcode.app/Contents/Developer
TL;DR : Open Xcode, go to 'Settings...' in the menu bar. Then go to the 'Locations' tab and click on the 'Command Line Tools' dropdown and click on the latest version (click on a version even if it seems like a version is already set). Now try your pod install again!
Probably this answer(https://stackoverflow.com/a/69427481/8988448) would solve your issue. Looks like you haven't given proper permissions.
run chmod 600 ~/.netrc and once it is done, run pod install.
Got same error as below:
✔ Downloading template
✔ Copying template
✔ Processing template
ℹ Installing dependencies
✔ CocoaPods (https://cocoapods.org/) is not installed. CocoaPods is necessary for the iOS project to run correctly. Do you want to install it? › Yes, with gem (may require sudo)
✔ Installing CocoaPods
✔ Installing Bundler
✖ Installing CocoaPods dependencies (this may take a few minutes)
error warn Multiple Podfiles were found: ios/Podfile,vendor/bundle/ruby/2.7.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via "project.ios.sourceDir". You can learn more about it here: https://github.com/react-native-community/cli/blob/master/docs/configuration.md
✖ Installing CocoaPods dependencies (this may take a few minutes)
error Error: Looks like your iOS environment is not properly set. Please go to https://reactnative.dev/docs/next/environment-setup and follow the React Native CLI QuickStart guide for macOS and iOS.
Environment: macOS Catalina 10.15.7
Through gem installed cocoapods like below.
rn sudo gem install -n /usr/local/bin cocoapods
Password:
When run react-native init myproj, choose gem to install coacopods again.
Hello once I also had same issue . I have resolve it.Follow this step it would work .
This error is cause by installing same package multiple time in single project
Try to remove that package from project and reinstall that project.
Try to uninstall ruby-2.7.5
yarn remove package name
yarn add package name
or
npm uninstall package name
npm install package name
and
cd ios && pod install && cd ..
npx react-native run-ios
I have a project that needs SVN to install some packages. Specifically, I depend on node-steam-resources and its installation instructions say
Run npm install seishun/node-steam-resources. It fetches the Steam resources and requires svn.
On localhost it works after installing SVN console.
But how to do the same on Heroku?
You'll need to use the apt buildpack to install OS-level packages in addition to your existing buildpack (presumably heroku/nodejs).
Create a new file called Aptfile in the root of your repository. This is where you will define any additional Ubuntu packages you require.
Edit that file so it looks like this:
subversion
Add and commit that file.
Configure your Heroku app to use the correct buildpacks:
First, set your Node.js buildpack explicitly:
heroku buildpacks:set heroku/nodejs
Then add the apt buildpack:
heroku buildpacks:add --index 1 heroku-community/apt
Run heroku buildpacks to make sure you see both buildpacks, with the apt buildpack showing up first and the Node.js buildpack showing up second.
Finally, redeploy your application and watch the build output. You should see the subversion package get installed, then your Node.js dependencies get installed.
I can't run bulma on Heroku and npm is not a Heroku command.
What should I type to do npm install bulma on Heroku? Do I need to use yarn?
brew install yarn, yarn add bulma doesn't work on Heroku either.
Here is the error I'm seeing:
Sass::SyntaxError: File to import not found or unreadable: bulma/sass/utilities/_all.sass.
Don't install Bulma yourself, and certainly don't try to install yarn via Homebrew.
Heroku's ephemeral filesystem will prevent it from working properly, interactive commands run on temporary one-off dynos that only exist as long as your session runs, and brew is mostly a macOS package manager (though a Linux version does technically exist).
Heroku will build your application for you as long as you tell it how.
Make sure to include a package.json and package.lock or yarn.lock that includes the JavaScript libraries you need
Tell Heroku which buildpacks to use for your application:
$ heroku buildpacks:set heroku/ruby
$ heroku buildpacks:add --index 1 heroku/nodejs
Make sure the Ruby buildpack is last:
$ heroku buildpacks
=== your-app Buildpack
1. heroku/nodejs
2. heroku/ruby
Deploy your code
Heroku will run the Node.js buildpack first and install JavaScript packages from your lock file, then run the Ruby buildpack and install your gems.
I gave heroku plugins:install heroku-first-blog on terminal.I got an error something like this
Installing plugin heroku-first-blog... !
▸ Plugin not found
! error installing plugin heroku-first-blog
To use heroku plugins you need to specify the plugins git repository URL. For instance, if you wanted to install the heroku accounts plugin you might say:
heroku plugins:install https://github.com/ddollar/heroku-accounts.git
Here's what happens when I run this command locally myself:
$ heroku plugins:install https://github.com/ddollar/heroku-accounts.git
Installing https://github.com/ddollar/heroku-accounts.git... done
I'm following this tutorial and attempting to deploy a bare-bones Go web app to Heroku, but am having difficulties resolving an error:
remote: -----> Running: godep go install -tags heroku ./...
remote: main.go:7:3: cannot find package "github.com/russross/blackfriday" in any of:
remote: /app/tmp/cache/go1.3.3/go/src/pkg/github.com/russross/blackfriday (from $GOROOT)
remote: /tmp/build_1a204a91c152b49fe234bde14529ad27/.heroku/g/src/bitbucket.gotest/Godeps/_workspace/src/github.com/russross/blackfriday (from $GOPATH)
remote: /tmp/build_1a204a91c152b49fe234bde14529ad27/.heroku/g/src/github.com/russross/blackfriday
remote: godep: go exit status 1
remote:
remote: ! Push rejected, failed to compile Go app
I'm new to Go, so I assume I've screwed up my package structure, but running $GOPATH/bin/godep go install or go install works fine.
Here's the (abbreviated) structure of my go directory:
src
testapp
main.go
github.com
-codegangsta
russross
blackfriday
Thanks.
Fixed the issue by adding my $GOPATH/bin dir to my path.
export PATH=$PATH:$GOPATH/bin
Curious as to why this was necessary, though.