Question
Dokku and NodeJS + AngularJS Apps
Hi
We’re new to DO and we are deploying a set of apps that use Node for API and Angular for frontend code, and we’re using Dokku as the app container. We are facing a bit of difficulty because of the lack of Dokku documentation, but since there seams to be a lot of people using Dokku with DO maybe someone can help us.
1 - We run bower install in the post install script (so to not have bower components in git), and since we have node as a layer between nginx and the browser it supplies te frontend code as well using a “static” route. The problem is that the components downloaded during the post install seem to have a “special” state that prevents them from being access via http request. We canot fully understand what is wrong, but the solution is to just touch the files after the down load, so we put this in the post install script && find ./frontend -exec touch {} \; . This works but we would like to understand why. Does anyone have any idea?
2 - During the setup of the build process we had to install SASS by hand in the app container, but of course it doesn’t stick, so we put gem install sass in the post install as well. Is there a way to do this better?
3 - Is there a way to defined the version of mongodb that gets install using the mongodb plugin, and it there a way to externally connect to a mongodb instance?
Thanks in advance for your help
Ricardo Gomes
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×