I have installed a standalone cluster on my server. I see almost all of the commands are supported by tools but can't find a way to push an app package using the REST API.
Is that possible?
I ended up using sfctl CLI to manage the cluster. It uses HTTP connection.
From the docs, I found that Upload File could be used to upload the app package to image store.
sfctl application upload command may be a better option for uploading an application to the image store in the selected cluster.
sfctl application upload --path path-to-directory-with-ApplicationManifest.xml --show-progress
Related
We have a server and desktop computers on the same network. I am building a business application and have not found a way to directly work with Postgresql from vuejs. I have found that I can go through an API to work with Postgresql. I have built the API and it is in its own folder within the vuejs app and I run nodemon to start. I can make a production vuejs app but ...
How do I use the API in production?
How do I have the API autostart?
Thanks
I found a node module called node-windows. And this video about node-windows: https://www.youtube.com/watch?v=1smy9yyme1Y
I moved my backend API folder to my server and followed the video to add the node module and script to my server.
The module will autostart the service.
I have an ionic app that is connected to the mySQL database from a server and I want to migrate this app to the same server. I want to use this application as a website, which will continue to extract data from the mySQL database. How can I do that?
Thank you.
First I think you should probably split this into two projects:
the Ionic app, which communicates with the server via the API
the server side API (PHP file) with connection to the database
Usually these two would be in separate (Git) repositories.
You can then execute ionic build --prod to build the Ionic app for the web. The deployable files will be in the www directory once the command has finished. You can copy the files in this directory to a webserver like Apache or nginx, or you can easily deploy it to Firebase Hosting for example as well. It's just static files (HTML, CSS, JS, images, etc.).
You can find more information about deploying an Ionic app as a PWA (progressive web app) here. It also shows you how to deploy to Firebase Hosting, which has a free plan to get started with.
I am very new to using APIs so please excuse me. I am currently using a Python-Django App service from IBM cloud app services and the IBM Watson Discovery resouce. I have followed all the steps given here:
https://console.bluemix.net/docs/apps/tutorials/tutorial_web.html#before-you-begin
I have a machine that has docker and so the app got built successfully. However I am lost as to how I am supposed to get the front end ( which I am writing in bootstrap, javascript ) to connect to the backend and link the API.
EDIT
For example : I want my app to accept documents, feed them in Discovery, extract the keywords and sentiments and display them in the UI. How do I know what to access from the server side code and what to link where in the UI.
It is a very broad question but its a compulsory project I need to do and I am clueless. Pleaassee Help !
Before you try to integrate an API, you will need to be familiar with Python and Django. If that is not the case, then you really need to go through a series of tutorials.
Then before deploying to the cloud, you will be better off running your Django app locally on your laptop. Use pip to install the watson-developer-cloud pypi module and use the API documentation to build the python code in your Django application - https://www.ibm.com/watson/developercloud/discovery/api/v1/python.html?python#query
If none of this makes sense, then you need to brush up on your knowledge of Python, Pip, and Django.
When you have the app running on your machine, then you will be ready to package it up into either a docker image or cloud foundry container and deploy to the cloud.
I'm starting out with IBM Bluemix and CloudFoundry. Using the tutorial examples of the Node.js/Cloudant app I have a dev workflow that seems really slow. What is the best practice for development with cf?
Here's what I do now
Edit my files locally
cf push myapp
Wait for a long time for the app to deploy
Test and find an error
Repeat
If you are building a Node.js application, you can use Bluemix Live Sync to quickly update the application instance on Bluemix and develop as you would on the desktop without redeploying.
You can choose to download the bl cli to sync with a local directory using Desktop Sync, or set up your project on DevOps Services and edit the code directly in your browser using Live Edit. Look in the documentation for Bluemix Live Sync.
https://developer.ibm.com/devops-services/2015/02/13/everything-kitchen-sync-bluemix-live-sync/
If you are doing more intensive development, it would be faster for you to set up node locally and push to Bluemix periodically. You can still consume most Bluemix services locally.
If you have to rely on an architecture resident in Bluemix and you do not have the possibility to test on local you cannot avoid the "push" command and the workflow you described. Regarding point 3, you might have incurred in a platform issue announced at https://developer.ibm.com/bluemix/support/#status.
I try to add facebook sdk on my unity game with following the tutorial ( https://developers.facebook.com/docs/unity/tutorials/games/ setup part) i follow the instruction and use parse.com for deploy the game because i don't have web server but i don't understand how to use parse.com for deploy the game there is no option for upload file, its possible to upload it (and how?) or it's a feature only reserved for Pro/enterprise plan ?
(Otherwise what web service i can use for deploy a unity webplayers? other than dropbox)
Solved found the parse.zip for the parse console and can upload with it