How can I create/remove folders in Shinyapps.io? - directory-structure

I would like to
view the folder structure of my apps that are deployed in my shinyapps.io account
also create/remove folders if necessary
What is the best way of doing this? Can I use Filezilla for that purpose? If so, how?

Related

How should I upload a Django project to GitHub?

This is probably a very dumb question. But I have a little project in Django and I would like to upload it to GitHub to just have it there.
I know how GitHub works and I know how to upload the project. But I'm wondering if just uploading the whole folder is the right way to do it.
I mean. I have a data base with my project, that has some information.
So is the database JUST in my computer right? It won't get uploaded next to the project to github?
So basically I'm asking:
Should I just simply upload the whole folder?
And if I were to download my project from GitHub from another computer. Should I just have to run migrations to make it work locally?
Don't push your settings.py into a repository, because it has some important information about your application such as SECRET_KEY OR DATABASE.
It’s important to keep your application credentials like API Keys, Amazon S3, email parameters, database parameters safe, specially if it’s an open source repository.
You need to make sure that these kind of information will be stored in a secure place and don't push it into a public repository.
There are more files that you shouldn't push into your repository. check out this link to know more about .gitignore files in Django projects. also there is a website that you can create your .gitignore files automatically.
Now if you want to know more about how to store these kind of informations you can use environment variables and also there is a package called python-decouple that you can use it for storing your important informations.

DJango use templates from seperrate AWS S3 Bucket

I have a Django server running in an elastic beanstalk environment. I would like to have it render HTML templates pulled from a separate AWS S3 Bucket.
I am using the Django-storages library, which lets me use static and media files from the bucket, but I can't figure out how to get it to render templates.
The reasoning for doing it like this is that once my site is running, I would like to be able to add these HTML templates without having to redeploy the entire site.
Thank you
To my best knowledge, Django-storages is responsible for managing static assets and media files, it doesn't mount the S3 bucket to the file system, what you might be looking for is something like S3Fuse which will mount the bucket on the File System, which will allow you to update the template and have them sync. This might not be the best solution because even if you got the sync to work, Django might not pick those changes and serve the templates from memory.
I believe what you're looking for is a Continuous Delivery pipeline, that way you won't be worried about hosting.
Good Question though.

How do I export my project on AppDrag?

I have used the AWS hosting of AppDrag for my client's project, but he now wants to take it to his own hosting service. Is there a way to export the site like in a zipped folder so I can send it to him?
Yes. From the AppDrag Dashboard, you open the code editor, where you will find the folders of your site. Right click the root folder and you should see the download as zip option.

Azure Deployment not picking up SSL certificates in repo

I'm currently running a Django app on the Azure server. I have a MySQL database to access using SSL. The SSL certificates I need to access the server are physically in the repo and I got my Django settings file to point to these using a relative path.
I have Azure set up to do continuous deployment from BitBucket. Problem is, at the end of the deployment, it will copy over all the files EXCEPT for the .pem files that I need.
I have to manually copy over the certificates everytime I push a commit. The files are in static/certs/*.pem
Is there something wrong with Azure? Or BitBucket? Or is there a better way of doing this?
I figured it out. Anything put manually inside the static folder gets cleaned out by Azure during deployment.
Just don't put anything inside the static folder

Deploy Rails spree to Beanstalk

I have deployed rails spree app to AWS Beanstalk successfully. Then I added some new products together with their images. The app by default saves the images in my_app/public/spree/products folder. Every thing went fine until I deployed new code. The new code is deployed successfully but the "products" folder is gone. I now have to re-upload all of my images manually. Anyone has any idea what is going here?
Please let me know if you need any further info.
Thanks!!
Application will contain a public folder and under of this, we have spree products/taxons images folder...Those files are static by nature, so it’s a good idea to serve them using S3 because for every deployment our code replace.
Elastic beanstalk servers are somehow out of your control, meaning AWS controls when they are restarted and even terminated and rebuilt. Therefore, you shouldn't store anything on local disks (which is what Spree does by default).
The solution to your problem is simply to store them on S3 as described here.