I'm trying to install directus into Heroku.
Heroku reset files on the dyno every weeks, so every files need to be in git repository.
I would like to know which files are created/modified after install ?
I created and added /config/api.php but it's not enough it seems
Related
I have VueJS project published on Netlify, what i want to do is to make modifications to this project and see my changes locally before i update the repo on GitHub and publish the changes on Netlify. So simply i'm trying to find a way to serve the project locally but this doesn't work anymore after the project got published on Netlify.
Whenever i run npm run serve i get the below error:
PS F:\Projects\reaction-timer-testing> npm run serve
> reaction-timer-testing#0.1.0 serve
> vue-cli-service serve
'vue-cli-service' is not recognized as an internal or external command,
operable program or batch file.
I assume this is because that project is in build mode and i did that by running npm run build while i was publishing it to Netlify.
I've read someone recommends to run serve -s dist and this got me no where because each time i visit the local link http://localhost:3000 it gets 404: the requested path could not be found.
Another one advised to download and install xampp but i don't know what to do next i think i've tried everything.
Here is a view of my project files (it's a very simple project that i made for learning)
Pic of project files
Link to the project on Netlify: https://reaction-timer-testing.netlify.app/
I've locally written code for a website that has since been pushed to a private github repository owned by my organization. I would like to set up my Apache web server's subdomain to automatically pull that code every time a push is made to a certain branch of the Github repo.
I've read many documentations and tried many things, nothing seems to be working for me.
Could someone please provide detailed steps or a method that has worked for them in this situation?
EDIT
With cPanel's Git Version Control Tool and SSH keys, I've been able to get my repository cloned properly. Now, I still need a way to make cPanel run "npm run start" every time the repository is deployed. Any thoughts?
In the past I've manually downloaded vendor JS such as jQuery or RequireJS and saved them in my repo under /vendor/js. I'd like to use NPM to manage all of that for me and clean up my repo a little.
I've built a packages.json file and used npm install, but I'm not sure what the best way to use the node_modules folder that it generates is.
Should I link directly to the script files in node_modules?
<script src="/node_modules/requirejs/require.js"></script>
Or should I use some other tool (gulp?) to move the contents of node_modules somewhere else after it's installed?
This isn't a Node app, just a simple front-end website that would work on any server, e.g. a LAMP stack.
Guys I've spent last 24 hours continuously trying to install Redmine 3.x on the WHM/Cpanel server but failed to do so. Can some please guide me with one proper way or tell me about a relatively new article regarding this issue because every solution i find on the internet is old.
There is no out-of the box solution for Cpanel.
Redmine is complex Ruby on Rails based web application, and as such it relies on lot's of 3rd party libraries, defined in Gemfile.
Although it migth be possible to install all Gems manually via Cpanel and avoid bundle install command, you would still need to run some commands like
bundle exec rake generate_secret_token
bundle exec rake db:migrate RAILS_ENV=production
So to install it via WHM/Cpanel, I suggest you create a cpanel account for your Redmine, then enable SSH access for that Cpanel user, and follow official installation tutorial from Redmine. (Which is too big to write here inside answer).
Just make sure to unpack your Redmine outside public_html!
And you can deploy your Redmine via Cpanel as FastCGI, by pointing your application path to Redmine's public directory, just make sure to have dispatch.fcgi in your public folder of Redmine
mv dispatch.fcgi.example dispatch.fcgi
mv htaccess.fcgi.example .htaccess
I cloned universal-starter (webpack version) and have it up and running on my local machine using npm start and npm run watch per the instructions
Now stuck after npm run build and attempting to deploy to Azure (and Google Cloud) via the github integration - can't figure out how to set up either to work.
Anyone have a recipe on how to get the webpack bundled files to fire up on an external host with express.js? Do I need to run commands via a CI integration? The files in /dist don't seem to stand on their own.
At Netlify you can connect your git repo and tell them what build commands you want them to use. If you specify the "dist" directory, then they will deploy anything that gets in there (after they have compiled your application).
Edit: the lowest tier is free.
Edit2: I am not associated with Netlify. I just used them in my latest deploy, and found the process extremely easy.
Note: This has changed dramatically since Angular 2. While I'm now moved on to SSR, docker, and all kinds of other things, the simplest answer was to
1) Production build
ng build --prod
2) Transfer files to a static web host (i.e., I used awscli to connect to a s3 bucket when it was just a static site...I know use SSR so I need to use a node server like express)
3) Serve files (there are some complexities for redirect requirements for index.html for error and for 404...and of course setting the status for both redirects to 200)
4) Put something on the frontend for performance/ ssl/ etc. nginx or a CDN would make sense.