Play Framework(2.2.4) deployment issue cannot find Javascript/CSS - javascript

I've created an application in Play an have deployed it to a linux server.
The app was developed on win7 and I ran 'dist' and copied the zip file over to the server.
I'm using DataTables (http://datatables.net/examples/styling/stripe.html) and TwitterBootstrap in the application but I can't seen any of this rendering in the app deployed to the server. I see it on my localmachine. Any idea why?

Related

Deploying a Sapper app on GoDaddy shared hosting with cPanel

I am new to web development and have never deployed an app before.
I have bought a domain, ssl, and shared hosting through go daddy and am trying to deploy a simple Sapper app.
I have been able to deploy a basic node.js app by following this thread I have Godaddy Shared Web Hosting I need to host node.js website can host site?
I have uploaded my app folder into the user/public_html folder and can successfully build the app by running:
node sapper/build
The terminal replies with "Starting server on port 3000" which doesn't change anything.
My guess is I need to modify my server.js but I am really out of my depth (it's using polka btw).
If someone could please help me deploy the app correctly and how to integrate the ssl certificates it would be much appreciated.
Thanks :)

PWA. Local development with webpack

I'm working with the React Create App and implementing PWA features. I configured PWA manifest successfully, the app can be installed. Now I'm working on Offline mode and here is a problem.
For local development, CRA uses webpack dev server. The app runs on http://localhost:3000
When I add the app to my Desktop and turn off the internet and the webpack dev server I'm facing the error: The webpage at http://localhost:3000/index.html might be temporarily down or it may have moved permanently to a new web address.
It looks like it doesn't work without the working server, eg. a connection.
So I can't test the PWA features because it just doesn't work in a Standalone Mode without any connection (internet & webpack dev server) but I have to.
Is it possible to handle it somehow? Or I'm doing something wrong?
Basically my question is: How to the PWA Offline mode locally in a Standalone mode when PWA installed on Homescreen and the Internet and Dev server are turned off.
Thanks for any help!
Kind Regards.

Web Worker not working after deployment but woking in local

I am using z bar processor for barcode reading .I have used web worker to use path of zbar-processor.js.
var worker = new Worker('scripts/directives/zbar-processor.js');
The above code is working fine when running on localhost but gives 404 file not found when i deploy build using grunt clean build.

How to configurate webpack-dev-server in laravel application?

There is a remote server on which the Laravel application is located, I downloaded the project to the local machine and synchronized it with SFTP.
The first question is, where is it necessary to run the Dev assembly of Webpack (On a local machine or on a remote server) and how generally is it correct? If it is local machine, than how to proxy to the server with Backend?
I made a build without any problems to get all the charms of HMR, but in the public / index.html directory only, so I don’t understand how to make webpack-dev-server work with PHP, for example myapp.com/tasks?

Meteor app suddenly no longer runs on iOS

My Meteor-based app no longer works as designed on iOS, without me having changed anything relevant. The app still works when run from a local server (http://localhost:3000) as well as when hosted at meteor.com. But, in an iOS simulator and when deployed to an iOS device through xCode, the app fails to run properly.
The app opens with a form that needs to be filled in by the user. When submitting the form, on iOS, the entered values briefly are stored in session variables, but almost immediately the session variables are emptied and the form is displayed again. (What should happen is for an external JSON file to be loaded, based on the form values, after which the contents of that JSON file is manipulated and displayed.)
I just now upgraded to the latest version of Meteor, and xCode did an upgrade itself in the background.
The app is supposed to load a Google font file (from fonts.googleapis.com), but though this works fine when the app is served from either the localhost or meteor, the font does not appear to be loaded when the app runs on iOS.
I'm sorry I don't have actual example code (the whole app?) or a running version of the app that I can show you. As the app is not yet publicly available, I'm a bit reluctant to publish it here. :(
Is there a way to meaningfully debug a Meteor app running on iOS? Is there something obvious I'm missing in the deployment?
Turns out there's an issue with meteor 1.0.4 and building a project using Cordova (https://github.com/meteor/meteor/issues/3814).
I downgraded to meteor 1.0.3 through:
meteor update --release 1.0.3
Then, I deleted the Cordova folder in .meteor/local/ with
rm -R cordova-build
Then, I patched 1.0.3 to 1.0.3.2 with
meteor update --patch
This solved the problem.

Categories