PhoneGap build is not updating all of my files - javascript

PhoneGap build is not updating all of my files? I have been using Build for a while, but now the downloaded application seems like not contains the css file.
I tried to delete the application then upload new zip file and rebuild it but same issue appear.
I renamed the file extension .apk to .zip and i opened the file I recognize that the css folder is not in the same root as other folder like .js and i think it is the problem, but i don't why this happened.
Any help??

I fixed the issue by deleting the css folder then rebuild the app and it is working now

Related

How to upload GULP project to File Manager / CPanel?

It's my first time using Gulp. I am familiar with React.js, Gatsby, Next.js, but I don't know how to upload Gulp project to Hosting. after gulp build the only logical thing I see is production folder. I have zipped it and uploaded, but the website (hosting) doesn't see it. How to make my project live?
Ok, I figured it out.
gulp build
Zip the production folder
Upload it to your cpanel under public_html folder and unzip it.
Make sure you have index.html! If you don't, you won't be able to see your website. In my case I had homepage.html instead, that was the main problem. Just rename it to index.html.

Images or JS not showing on Magento 2 installation

I've just installed Magento 2 onto my production server under a
development. subdomain. The install appeared to have been successful
but I've noticed there are no images or working javascript in both the
frontend and the backend.
After inspecting the source code, I found that files being called in
such as
http://dev.website.com/pub/static/frontend/Magento/luma/en_GB/css/print.css
don't actually exist. Any thoughts? I tried solutions on several
stacks but haven't had any luck.
Try this Before that take Backup
Remove everything, except .htaccess file from pub/static folder
Open up app/etc/di.xml find the path “Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink” and replace to Magento\Framework\App\View\Asset\MaterializationStrategy\Copy
Note: Remove entire files and folder under pub/static except .htaccess file.
For More info ref this http://www.dckap.com/blog/magento-2-admin-links-not-working-in-windows/
Other Solution
You can run below command from Magento root folder.
php bin/magento setup:static-content:deploy
This will download the content perfectly in respective folders.

Cordova saving a file within the www folder

I am currently creating a Cordova app to save files and read files. I ahve successfully managed to code it up so that it reads a file from the device (or creates it if it does not exist) and then write to that file.
The problem I am having is that it is saving the file to the root of the device. I added in a getDirectory method to create a new directory under the root where the file can sit and this is working but ideally I would like to save the file within the www folder of my Cordova app. Is this possible? Also is there any way of making sure the user is unable to write to this file?
The www folder is in readonly mode. You can't write anything in it.
Cordova plugin file documentation explain this.

Problems with adding multiple html files on Mosync

i'm new to Mosync and i'm trying to create an HTML5/Javascript project. The IDE generates a main.cpp file and an index.html file.
The main.cpp file contains a reference for the index.html file; i've already tried creating a new html file inside the same folder where the generated index.html file is and changed the reference in the main.cpp file to call the file that i've just created but it gives me an error that says the file cannot be found.
I've even tried removing all the code in the generate index.html file and running it and the results still shows all the deleted code from the index.html file.
My question would be how do i add multiple html files when creating a MoSync project?
It should work to do what you are doing, this could be a bug. Can you provide some details about which version of MoSync you are using, and which platform?
You should be able to have any html file in the folder LocalFiles in a MoSync project, and then just pass the file name to showPage in main.cpp, just as you are doing.
Perhaps the project is not rebuild properly? Try to right-click on the project in Eclipse, then select Rebuild. Are you on iOS or Android? How do you transfer the app to the device?
As Mikael mentioned also, I think it is an IDE bug, I tried refreshing/rebuilding the project and it worked fine. Sometimes eclipse does not detect file changes that come from other editors so it ignores them.

How do I fix PhoneGap build errors?

I am trying to build a PhoneGap-based iPhone application, but I keep getting the following two errors:
./build-phonegap.sh: line 6: ./configure: No such file or directory
cp: lib/iphone/phonegap-min.js: No such file or directory
I built and installed the latest version of PhoneGap from the source on GitHub. I have checked to make sure that the PHONEGAPLIB variable is indeed set in XCode.
Where do I get the files listed? Where do I put them (to what are those paths relative)? And why aren't they already there?
Later
It seems the problem was that the project had been created with one version of PhoneGap (one that doesn't reference an external lib directory), but I was trying to run it with a newer one. Recreating the project with my latest version and copying over the www directory fixed the problem.
I am confused. What steps do I take? I just downloaded phonegap. I don't know how to "install" it. Do I have to run some git command or some build command before I can open it in xcode?
UPDATE:
Figured it out. I downloaded it. Unzipped it. Went into the phonegap folder. Duplicated the iphone folder. Opened xcode and hit build and go. It worked.
Apparently your iphone gap projects need to be a subfolder of the phonegap folder. That can probably be fixed/changed if you know what you're doing.
This video here helped me verify that all you need to do is download, unzip and open. The files inside your www do work by default.
http://www.youtube.com/watch?v=LcES5nIbMkk

Categories

Resources