how can I use Doctrine Migrations on the shared web hosting where is no access to SSH? I tried looking everywhere for same solution but I didn't find anything.
Thanks
Related
I want to try and push my django app to Azure, has anyone done this? I am using MySQL for the database but can only find POSTGRESQL as a WebApp. Does anyone have any suggestions??
yeah, search for mysql and you will find it:
I am new to cloudantdb and django. Is there any way to integrate cloudantdb with danjgo framework. Is it possible to connect cloudant with django?
As you may be aware, Cloudant is built on Apache CouchDB, so if you can't find references for Cloudant, it's usually worth also searching for CouchDB. I don't really use Django, but a quick search throws up the following references:
http://leok.me/2013/05/02/what-you-need-to-know-couchdb-django/
https://lethain.com/an-introduction-to-using-couchdb-with-django/
http://eflorenzano.com/blog/2008/11/10/using-couchdb-django/
https://djangopackages.org/grids/g/couchdb/
Most if not all solutions on the web are very outdated.
The solution used by IBM in a capstone project on Coursera was:
Use SQLite backend in your Django app
Create Cloud Functions for communicating with Cloudant
Create REST API definitions in your Django app that utilize the Cloud Functions to communicate with Cloudant
I don't know if it's the best solution, but it works. I do feel like SQLite is redundant at this point but without it, I couldn't get the app to work.
I need to use a custom db instead of one that boxfuse creates when deploying my application to aws. I created a aws rds database, and the app won't connect to it after deploying, instead it uses a database that boxfuse creates while deploying. I use flyway for migrations.
I tried to put the url, username and password into a configuration boxfuse.yml file, but nothing happens.
I read the boxfuse documentation, but couldn't find a solution to my problem.
Is there a easy way to solve my problem?
To use your own database and prevent Boxfuse from provisioning one for you, the easiest is to recreate your app with -db.type=none (see https://cloudcaptain.sh/docs/payloads/springboot#databases)
Alternatively if you want to use both the Boxfuse-provisioned database and your own, you have to manually define a second DataSource bean with the correct connection parameters which you can then pass to Flyway or any other library requiring it.
I have a domain www.mydomain.com where is installed a web app perfectly working.
I had to create a third level domain test.mydomain.com where I copied all the file of my web app included all the doctrine files.
I don't think I need to explain what test will be used to...anyway, after migrating my entire project and applied some modifications to the entities when I launch the command:
php doctrine orm:schema-tool:create --dump-sql
In the generated queries, the old entities from the production project are shown instead of the modified ones.
I deleted all the cache with the following commands:
php doctrine orm:clear-cache:query --flush
php doctrine orm:clear-cache:metadata --flush
php doctrine orm:clear-cache:result --flush
php doctrine orm:clear-cache:query
php doctrine orm:clear-cache:metadata
php doctrine orm:clear-cache:result
It didn't work. The connection with the DB is good and also the credentials work fine I've already tested this. It doesn't work the update and create schema commands.
Any advises?
In the file cli-config.php there were a constant which pointed in the production server folder. Once updated the path everything worked fine.
I'm trying to set up some console capabilities in Zend Framework 2 and I get the gist of the setup, but I also have Doctrine2 included in my composer requirements, and the doctrine cli keeps interceding when I'm trying to get console routing set up in ZF2. Is there any way to keep the doctrine functionality but still get the index.php to accept pre-configured routing commands from the command line interface?
OK, I figured out what the problem was. I was calling out to the console from phpstorm so I figured it would need quotes around the parameters. For some reason, phpstorm was sending them with the quotes still attached. (probably re-quoting them for me?) so instead of seeing commands like:
php.exe public/index.php migration materials
it was getting:
php.exe public/index.php 'migration' 'materials'
Which did not match the configured routing. I so hate it when programs try to think for me.