Yesod Persona authentication problems when using Dockerized MongoDB - mongodb

We are developing an application using Yesod and MongoDB and we are having users authenticate using Mozilla Persona. However we have a development database that we use across development machines and also on our staging machine. Anytime development or testing data is added or removed from staging we synchronize it with the development machines using Docker. Here is the problem: even though our databases are exactly the same (thanks to Docker) we are encountering a situation in which we are able to log into the application on staging but not on the development machines. Basically Yesod refuses to log the application. Any ideas as to why is this happening? Thank you in advance.

Related

How can I deploy a laravel application to a server

I currently have developed a Laravel application on my localhost. We have a server in the office which is only accessible to Office computers. I want to deploy my Laravel application to that server so they can access it. what steps should I take after developing the application to make it live on server. A detailed guide will be highly appreciated as I have no experience working with the servers.
I found this time ago, and help me a lot to setup a server and introduce me to server stuff, the CI/DI process, the repo pipelines, etc. Enjoy it!
https://lorisleiva.com/deploy-your-laravel-app-from-scratch

Where can i host my webapp which use mongodb as a backend server

I have created a project with MERN stack and want to host it. But as i came to know that netlify.app hosting site doesnt support hosting for database related projects as my project includes mongodb as a backend.
It will be a great help if anyone can suggest where should i host my project which can support mongodb as a backend also. And also any methods to do it that will be great help.
You can use AWS EC2 Linux instance, where you can keep your project and at the same time you can store your data. For the initial phase of your project, you can install MongoDB on the same machine.

How do I set-up Rest API to the Mongodb installation on my Mac Pro

I'm developing a Google Apps Script application and I want to have a MongoDB backend to the application. Currently I am using a Mongolab sandbox account and successfully interacting with the collection on the Mongolabs servers. The performance is very good and the support at Mongolabs has been excellent.
That said, long-term I've decided to host my own Mongodb on my Mac Pro that is currently running Yosemite. I already have Mongodb installed and its working fine.
My Question: How do I use (install/configure/establish) a Rest API (or other means) to connect with my locally installed Mongodb database. I have spent a couple hours on 10gen's site and on Google trying to figure it out, but I have not quite gotten there. Does anyone have experience doing this or something similar that might be able to share your experience or at least refer me to a good resource.
Thanks in advance for you help.

Heroku-like services for Scala?

I love Heroku but I would prefer to develop in Scala rather than Ruby on Rails.
Does anyone know of any services like Heroku that work with Scala?
UPDATE: Heroku now officially supports Scala - see answers below for links
As of October 3rd 2011, Heroku officially supports Scala, Akka and sbt.
http://blog.heroku.com/archives/2011/10/3/scala/
Update
Heroku has just announced support for Java.
Update 2
Heroku has just announced support for Scala
Also
Check out Amazon Elastic Beanstalk.
To deploy Java applications using
Elastic Beanstalk, you simply:
Create your application as you
normally would using any editor or IDE
(e.g. Eclipse).
Package your
deployable code into a standard Java
Web Application Archive (WAR file).
Upload your WAR file to Elastic
Beanstalk using the AWS Management
Console, the AWS Toolkit for Eclipse,
the web service APIs, or the Command
Line Tools.
Deploy your application.
Behind the scenes, Elastic Beanstalk
handles the provisioning of a load
balancer and the deployment of your
WAR file to one or more EC2 instances
running the Apache Tomcat application
server.
Within a few minutes you will
be able to access your application at
a customized URL (e.g.
http://myapp.elasticbeanstalk.com/).
Once an application is running,
Elastic Beanstalk provides several
management features such as:
Easily deploy new application versions
to running environments (or rollback
to a previous version).
Access
built-in CloudWatch monitoring metrics
such as average CPU utilization,
request count, and average latency.
Receive e-mail notifications through
Amazon Simple Notification Service
when application health changes or
application servers are added or
removed.
Access Tomcat server log
files without needing to login to the
application servers.
Quickly restart
the application servers on all EC2
instances with a single command.
Another strong contender is Cloud Foundry. One of the nice features of Cloud Foundry is the ability to have a local version of "the cloud" running on your laptop so you can deploy and test offline.
I started working on the exact same thing as what you said a few weeks ago. I use Lift, which is a great framework and has a lot of potential, on top of Linux chroot environment.
I'm done with a demo version, but Linux chroot is not that stable (nor secure), so I'm now switching to FreeBSD jail on Amazon EC2, and hopefully it'll be done soon.
http://lifthub.net/
There are also other Java hosting environment including VMForce mentioned above.
If you are looking for a custom setup which also has the ease of deployment that heroku offers: http://dotcloud.com. They are invite only right now but I was given access in under three days. I am working on a Lift/MongoDB project there and it works well.
Off the top of my head, only VMForce comes to mind, but its not available yet. This will be a Java-oriented service, so that probably means you'll have to spend a wee bit of time figuring out how to package the app.
For more discussion, there was a debate about this in 2008.
I'm not entirely sure if it's really suitable or not, but people have deployed Scala applications to Google App Engine, for example http://mawson.wordpress.com/2009/04/10/first-steps-with-scala-on-google-app-engine/
Actually you can run scala on heroku right now. You don't believe it?
https://github.com/lstoll/heroku-playframework-scala
I'm not sure the tricks lstoll has used are legit but using the
new cedar platform where you can run custom processes and some
ingenious Gemfile hacking he has managed to bootstrap the Java
play platform into a process. Seems to work as he has a live
site running a test page.
Stax cloud service offers preconfigured lift project skeleton. Also, there is a tutorial on how to deploy lift project to appengine.

running mongoDB in a web hosting

Is there any way to run the mongoDB in goddady or any other hosting websites except for mongoHQ and so on?
and if I use mongoHQ , is that safe for the data and fast ?
I'm right now using it in the localhost server as a windows service .
If you want to run software like MongoDB in a web environment, you'll need a Virtual Private Server (VPS). This is like having an entire machine that you can install anything on and do anything with. The downside is that you have to install and configure all the software on it, including backups and disaster recovery, which a shared host will usually do for you instead. The upside is that you have more system resources, so you can do more, and you can install any software you want, so you have more flexibility. My personal recommendation is Linode or Amazon EC2.
Shared hosting services generally don't allow you to install your own services, so you'll have to use what they provide for you. Most provide an RDBMS, like MySQL, but there aren't many providing MongoDB for you.
Just to chime in because I was wondering the same thing and came across this when I searched skynet, mLab. They have standard pricing for hosting a mongoDB setup and deployment as well as a free version for dev work.