issue with Railway when trying to deploy express mysql app npm WARN config production Use `--omit=dev` instead - mysql

Basically what's happening is that when I try to deploy my Express, MySQL, Sequelize website in Railway, it's returning me the following error:
"npm WARN config production Use --omit=dev instead"
I don't think showing any code is necessary but, if you'd think it is, just let me know.
Thank you very much!

Related

Red Folder in intelliJ after running springboot:run

Hi guys im having an issue with my intellij react project, ive already connected to the MySQL DB from intelliJ..
After running springboot:run, it installs all dependencies for the app after all is done i get a target folder thats red and a package-lock.json thats also red what does this mean?
Im new to react so im trying to run this app locally but when i run the project i get this error:
"Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-06-22 13:23:20.295 ERROR 6796 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed"
Project has already been built by previous Dev im just trying to get it ti run locally now.
what could i be doing wrong?
Spring-boot is one of the wonderful thing to get started to fast, it
does many things automatically. At the same time, missing
configuration will lead to this kind of errors.
Please double check application.yaml/.properties and pom.xml for more details.
This error is thrown when dependencies are not resolved correctly and mis-configuration of dependencies.
If it is a Maven project, right click on project folder and do 'Maven -> Re-Import'. It will fetch the missing maven dependencies.
Also, whatever is mentioned as part of the dependencies should have proper configurations. Let's say for example, you're mentioning mysql as dependency and doesn't provide connection/username/password details then this error occurs.
Please provide more details/error-trace log to provide more accurate answer.
Hope it helps!!

Getting error while runing simple node js app in openshift online

I am trying to setup node js application using one of github helloworld application code.
I am always getting this error
Regards,
Vivek Chauhan
From the error, seems like the package.json file doesn't have "start" script for npm start to work

How to deploy Go server on Heroku with a MySQL database?

I am a complete beginner at hosting applications right now but am trying to get a hold of it.
- I have the MySQL database running locally on my PC. How to exactly should I host it somewhere online.
- When I tried to deploy my Go server on Heroku, I got the following error and couldn't find a solution for it anywhere online.
-----> App not compatible with buildpack: https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/go.tgz
More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
! Push failed
Any help in this regard would be appreciated!
To fix this problem you need to use some of vendoring tools - e.g. Godep, dep etc.
Heroku can't deploy golang app without 'vendor' folder
just run this command:
go mod init [app-name]
this will create a go mod file and a go sum for you
then run:
go get
to install those packages you called in your go app.
developers usually use go mod init github.com/name/repo
but go mod init [app-name]
will do the job!

Compile Program for MapReduce2 but still get JobTracker Error

I am trying to run a MapReduce 2 job on hadoop but get an error about connecting to port 8021. As far as I know this port is for the JobTracker, which is not used in MR2. This makes me wonder if I am somehow accidentally using MR1. However, extensive web search did not get me anywhere.
I used the new API (org.apache.hadoop.mapreduce.*) and compiled with javac -cp 'yarn classpath' sourcefolder. Does anyone have a clue what I might be doing wrong?
Please check your configuration files and also make sure that your job tracker and task tracker are active. If its having problem connecting to port 8021, it might be used by other applications.

Glassfish Deploy CommandException Error

I want to deploy my application to glassvish v3 with asadmin deploy command however I get an error:
com.sun.enterprise.admin.cli.CommandException: remote failure: There is no installed container capable of handling this application com.sun.enterprise.deploy.shared.FileArchive#1c2a1c7
What can be the problem?
To me, the problem was coming from the fact that in /domains/domain/applications there was still the application I was trying to deploy again.
Another file access possibility I just ran into:
Service was started as root and the app undeployed/deployed. Then, as the correct limited rights user, undeploy/deploy. On deploy you'll receive this error, as the application files will still exist in he 'domains/yourdomain/applications' directory, and will be owned by root.
+1 to Keeg's comment on the awesome error messages we've all come to expect from Glassfish.
Hey I got the same error.In my case,I'd made a directory named "Web-INF",apparently the name of the folder has to be (mandatory) in upper-case i.e. "WEB-INF".
In short,check for spelling errors.
It solved my issue.So just wanted to share.I'm new to glassfish, so can't really tell you the exact solution.But what worked for me could be a solution for you as well.
Just in case someone else finds this question and the above answer doesn't match your case... Our problem was that the temporary area on the Glassfish server was full. Clearing some space let me redeploy the same application. Thank goodness for excellent error messages.
I had an ear project, where the ear package had different version number configured to maven pom.xml than the rest of the projects it contained. It searched sub-modules from version 1.x and the rest of the project was at 1.y version. I updated every pom to same version and that made the trick.